WordPress.org

Ready to get started?Download WordPress

Forums

custom taxonomy - query_posts using multiple tags (2 posts)

  1. nathanadams
    Member
    Posted 4 years ago #

    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?

  2. vtxyzzy
    Member
    Posted 4 years ago #

    Did you try this?

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

Topic Closed

This topic has been closed to new replies.

About this Topic