Support » Fixing WordPress » custom taxonomy – query_posts using multiple tags

  • I’ve got a page where I want to query some posts with a non-hierarchal custom taxonomy ‘uses’. If I specify one use (say ‘decking’) it works fine.

    <?php query_posts( array( 'uses' => 'decking', 'showposts' => 100, 'order' => 'ASC' ) ); ?>

    However, I want the page to display all posts that are either ‘decking’ or ‘flooring’ (or both). I can’t find any way of doing it that works. I saw some older threads about it not being able to be done in 2.8, but I’d have thought it would have been addressed by 3.0?

Viewing 1 replies (of 1 total)
  • Did you try this?

    <?php query_posts( array( 'uses' => 'decking,flooring', 'showposts' => 100, 'order' => 'ASC' ) ); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘custom taxonomy – query_posts using multiple tags’ is closed to new replies.