[Resolved] Separate Reviews And Posts
I have a widget for recent reviews, and a widget for recent posts.
My problem is: The recent posts plugin shows posts including the reviews. I want it to show posts wihtout reviews.
Tried to change the meta query but it didn’t work.
Recent reviews widget $args:
$args = array( 'post_type' => 'post', 'post_status' => 'publish', 'post_password' => '', 'posts_per_page' => $number, 'ignore_sticky_posts' => 1, 'order' => 'DESC', 'orderby' => 'date', 'meta_query' => array( array( 'key' => 'reviews_avg'.(get_theme_option('reviews_first')=='author' ? '' : '2'), 'value' => 0, 'compare' => '>', 'type' => 'NUMERIC' ) ) );
Recent posts args:
$args = array( 'numberposts' => $number, 'offset' => 0, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'suppress_filters' => true );
How I can make the recent posts to show only posts without the reviews?
- The topic ‘[Resolved] Separate Reviews And Posts’ is closed to new replies.