Viewing 3 replies - 1 through 3 (of 3 total)
  • Has anyone found a solution for this problem? I am running into it as well and cannot figure it out! I am using this:

    <?php $my_query = new WP_Query(array('tag__not_in'=>array('limitip'),'category_name'=>'features','showposts'=>1));
    while ($my_query->have_posts()) : $my_query->the_post();
    $do_not_duplicate = $post->ID;?>

    Hello,

    I think the error comes from “‘tag__not_in’=>array(‘limitip’)”. You have to put the id of the tag and not its name. Try “‘tag__not_in’=>array(X)” where X is the id of the tag ‘limitip’.

    was it solved? because I have the same issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Excluding a Tag in Query’ is closed to new replies.