New answers tagged

0

Nope, you can do that by nested query. To get all comments of posts by a user, you should think about getting all post of that user first, then get the comments of that post. <?php $args = array( 'author' => AUTHOR_ID, 'posts_per_page' => 500, //Don't use -1 here ); $the_query = new WP_Query( $args ); ...


0

You can add an additional parameter to your query to get only those for a specific author by id or name $args = array( 'status' => 'approve', 'order' => 'DESC', 'orderby' => 'comment_date_gmt', 'author' => 12, 'meta_query' => array( array( ...


0

I just tested your code as-is on my site (I manually added comment meta values to 3 comments) and it worked fine. The only thing I did was comment out 'post_type' => 'fod_articles', since I don't have that post type. Is it supposed to be fod_articles or food_articles? Edit: I tested again, this time with a custom post type, and it worked after making ...



Top 50 recent answers are included