ID author of the best answer

7.04K viewsGeneral
0

I need to pull in the template file ID of the author of the best answer how to do it?

Answered question

Sorry I am not able to understand. You want user ID of best answer?

0

$thispost_id=$post->ID;
$best_answer = ap_selected_answer( $thispost_id );
$answer = get_post( $best_answer );
$author_id_best = $answer->post_author;

Answered question
You are viewing 1 out of 2 answers, click here to view all answers.