WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Separate Reviews And Posts (2 posts)

  1. blixvod
    Member
    Posted 10 months ago #

    Hello.
    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?

  2. Krishna
    Volunteer Moderator
    Posted 10 months ago #

    This plugin?
    http://wordpress.org/plugins/recent-posts-plugin/

    Have you noted the warning at the top of the plugins page that warns that the plugin has not been updated or maintained for over two years (in fact about 5 years)? Do not use such plugins, instead look for a plugin that offers similar functionality. Look for one from here:
    http://wordpress.org/plugins/search.php?q=recent+posts

Reply

You must log in to post.

About this Topic

Tags

No tags yet.