I use a third part plugin called “Favorite Author”.
I want to filter post with the author I favorited.
I tried this :

$fav_author_list = get_user_option( 'favorite-authors', fav_authors_get_user_id() );
print_r($fav_author_list);
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; 
query_posts( array( 'author__in'=> array_keys($fav_author_list) , 'paged' => $paged, ) ); 

That prints something like :
Array ( [1] => 3 [2] => 1 )
3 and 1 are the user ID I follow

But the displayed posts don’t match with the author I favorited. What’s wrong ?

Read more here: WordPress – Query post from favorited author


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: