Show one post per author and limit query to 8 posts
Question
I want to show 8 recent products from multiple authors on the frontpage.
Need to show 1 recent product per author.
Currently i’m using basic wp query to show recent 8 products.
$args = array (
'post_type' => array( 'product' ),
'posts_per_page' => '8',
'order' => 'DESC',
'orderby' => 'date',
);
// The Query
$query = new WP_Query( $args );
What’s the best way to achieve this?
0
2 months
0 Answers
9 views
0
Leave an answer
You must login or register to add a new answer .