Forum Replies Created

Viewing 16 replies (of 16 total)
  • Thread Starter seanpaulfx

    (@seanpaulfx)

    How can I exclude posts by the code below.

    	$settings = array(
    		'daily' => TRUE,
    		'daily_range' => 30,
    		'limit' => 20,
    		'strict_limit' => FALSE,
    
    	);
    	$topposts = get_tptn_pop_posts( $settings ); // Array of posts
    	$topposts = wp_list_pluck( (array) $topposts, 'postnumber' );
    // args
    	$toppost_args = array(
    		'post__in' => $topposts,
    		'orderby' => 'post__in',
    		'posts_per_page' => 10,
    		'post__not_in' => array(6828),
    		'ignore_sticky_posts' => 1,
    
    );

    I tried post__not_in But it does not work.

    I have added the article id in the section: Exclude display on these post IDs
    It also does not work.

    Thanks

    • This reply was modified 4 years, 7 months ago by seanpaulfx.
Viewing 16 replies (of 16 total)