Query Multiple Taxonomies
Showing posts from two Taxonomies of a Custom Post Type... (5 posts)

  1. JoeyBottle
    Posted 5 years ago #

    Hey everybody,

    I've installed and activated the plugin "Query Multiple Taxonomies" and now I'm trying to show posts from more than one Taxonomy:

    <?php query_posts($query_string . 'post_type=work&posts_per_page=4&workcat=design,frontcover'); ?>

    In this case I have a taxonomy named "workcat" within the two Taxonomies "design" and "frontcover". Why this doesn't work ??? Please help me,

    Thank you so much, joeybottle

  2. scribu
    Plugin Author

    Posted 5 years ago #

    Erm, I think you're confusing a taxonomy with a term in that taxonomy.

    Please read http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28

  3. JoeyBottle
    Posted 5 years ago #

    Ahhh yeah! No I already understand what a term and a taxonomy is. But you're right, I described my problem as I would confusing a term in a taxonomy with a taxonomy. I'm from Germany - it was a language-problem.
    So I have a taxonomy named "workcat" with the two terms "design and frontcover". (...and some more term)
    How can I query just the posts with(in) these two Terms ???

    OR best solution would be: How can a filter-out posts with a specific Term ??????? That would be awesome to do! Thank you so much, greating from germany.

  4. scribu
    Plugin Author

    Posted 5 years ago #

    Well, the code you posted initially should work. It depends where you place it.

    Please install the development version (1.3-alpha2) to make sure we're on the same page.

  5. JoeyBottle
    Posted 5 years ago #

    Hey there! Now it works, yes! I had to use the 1.3-alpha2 Version of the Plugin. Thank you very much. But the one and biggest question is still how to EXCLUDE a specific term of a taxonomy in a query. Because this way I have to list ALL the Terms I want to have IN the query...that's kind of dumb if I want to add a new term.

    Would be soooo great if you have any idea how to solve that. Greatings from Germany,


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Query Multiple Taxonomies
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic