Support

Account

Home Forums General Issues How to display highest number value in post field by author name? Reply To: How to display highest number value in post field by author name?

  • Coming back to this and still having trouble… This is my current code:

    $author_id = get_the_author_meta( 'ID' );
    $field_name =  get_field("cbr7_review_total", $author_id);
    $value = get_field('$cbr7_review_number', $post->ID);
    update_field( $field_name, $value, $author_id);