• Hi there,

    Not really sure whether my topic title clearly explains what I am trying to achieve.

    I have a couple of custom post types setup which are all linked to the same custom taxonomy.

    Let’s say the post types are called “hardware”, “beauty shops” and “cinemas”. And the custom taxonomy is called “location”.

    The “location” custom taxonomy is a hierarchical taxonomy that contains different suburbs / regions.

    Is it possible for WordPress to “remember” what the current post type is and then display the same type when a user clicks on a different suburb?

    In other words, let’s say the user clicks on “hardware”. By default this should then display all the hardware stores listed on the site. But if they then click on a suburb, WordPress should remember the post type the user was viewing and only display hardware stores for the selected suburb.

    Getting the current post type and suburb should be easy, but how do I construct the query to display only the listings that returns “true” for both parameters? What I am having trouble with is if someone clicks on a custom post type, how do I include that post type in the link that is created for the taxonomy/suburb?

    I am not entirely sure if I am explaining this correctly, please let me know if anything is unclear.

    Thanx guys!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Displaying list of categories by custom post type and custom taxonomy.’ is closed to new replies.