• Hi,

    I would like to show a single post only if tag not in my array

    $args = array(
            'p' => $post->ID,
            'tag__not_in' => $not_in,
            'post_type' => 'post_special'
            );
    $my_query = new WP_Query($args);

    Without ‘p’ I have posts 1,2,4 only if I put ‘p’ => 3 the found_posts is not null as I expected.
    Why and how to fix this ?

  • The topic ‘tag__not_in and p (post id)’ is closed to new replies.