WordPress.org

Support

Support » Plugins and Hacks » Query Multiple Taxonomies Plugin – error if no match

Query Multiple Taxonomies Plugin – error if no match

Viewing 6 replies - 1 through 6 (of 6 total)
  • I remember I considered this case.

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

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

    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?

    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:

    query_posts(array(
                'resource_tag'=>$term->slug,
                'resource_cat'=>'lesson-plans',
                'orderby'=>'time',
                'order'=>'asc',
            ) );
            ?>
            <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?>

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

    'caller_get_posts' => true

    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. =)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Query Multiple Taxonomies Plugin – error if no match’ is closed to new replies.
Skip to toolbar