WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
Customizing the loop to catch the query values (4 posts)

  1. vehler
    Member
    Posted 3 years ago #

    Hi, im a noob to wordpress, and im trying to develop a "business directory" and i have setup a custom post type of "business" and two custom taxonomies "business_type" and "location". Im using the Taxonomy Drill down to get a custom query of businesses that belong to a certain business type and a location. Now, im using the is_multitax()to diferentiate the loops in the category.php but im still stuck on modifying the loop to catch the values from the query and populate the correct results.

    Can somebody point me in the right direction? Please bear with me, i have read as much as i can but i havent come up with a solution.

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    First of all, you should be using taxonomy.php, not category.php.

    modifying the loop to catch the values from the query and populate the correct results.

    What do you mean by correct results? I'm not really sure what you're trying to achieve.

  3. vehler
    Member
    Posted 3 years ago #

    First, im using taxonomy.php, my brain is not doing well trying to figure this out :). What i meant by that is that, i dont know how to modify the loop in orther for it to populate with the custom type posts that belong to the two custom taxonomies that i get from the widget. for example i get this url when i use it.
    http://vehlerdezign.com/zc/?location=area-metro&directorio=servicio BTW this is a test site.

    The thing is i dont know how to set the loop so it loooks for the posts from the custom post type "Directory" that belong to those taxonomies. Is there an example of a template that does this, or some guide?

    And thanks Scribu for the answer, its a great plugin but i guess im not that advanced in developing wordpress yet...

  4. vehler
    Member
    Posted 3 years ago #

    Im sorry, i kept reading and found my error :).

    I wanted to know is there any way to edit the widget? because i need all the taxonomies to show up even if they are empty.

    If one of the dropdown boxes is empty that it doesnt submit.

    And last the plugin is changing the tittle of my search results, is there any wat to customize this?

    Once again thanks before hand.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic