Query Multiple Taxonomies Plugin - error if no match (7 posts)

  1. trex33
    Posted 6 years ago #

    Love this plugin, but it displays incorrectly if there is no match. For example:


    Works well when there is page tagged with both City>Albany and Restaurant>Chinese. However, if there are no pages that match this criteria, it still shows results instead of nothing.


  2. scribu
    Posted 6 years ago #

    I remember I considered this case.

    Do you have a live example of the problem (that also displays the various tags for each post)?

  3. trex33
    Posted 6 years ago #

    Hi Scribu - just locally. I think your plugin is essential for squeezing the most out of custom taxonomies.

  4. scribu
    Posted 6 years ago #

    The plugin works correctly with WP 2.9, which is to be released very soon.

    So just hang in there a little longer or maybe even try the WP 2.9 beta version in the meantime?

  5. boxfott
    Posted 6 years ago #

    I'm having this error today on a live wordpress 3.0. The site is on the web, but hasn't been launched yet.

    I have three loops with multiple taxonomies on one page. When there are results, they are shown correctly. When there aren't results, a random 13 (??) posts that don't match either criteria are shown, instead of no result.

    Here's the code for one of the loops:

            ) );
            <h3 class="events">Text Studies & Lesson Plans Tagged '<?php echo $term->name; ?>'</h3>
            <div class="teaser_wide">
                <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                    <p><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p>
                <?php endwhile; else: ?>
                    <p><?php _e('There are no lesson plans tagged with'); ?> '<?php echo $term->name; ?>'</p>
                <?php endif; //end news?>
  6. scribu
    Posted 5 years ago #

    You might have some sticky posts there. Try adding this arg to query_posts():

    'caller_get_posts' => true

  7. colosimo
    Posted 5 years ago #

    same error for me and another guy with wp 3.0.1 and query multiple taxonomies both 1.2 and 1.3.

    please see that thread.

    thank you scribu for your plugin and your help. =)

Topic Closed

This topic has been closed to new replies.

About this Topic