Skip Navigation

[Resolved] Creating a custom search for one taxonomy category

This support ticket is created 5 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by kerimF 5 years, 3 months ago.

Author
Posts
#1370231

Hi there,

I'm trying to build a custom search for a specific category in a custom post type, but I'm not seeing how I can pull this off. What I want to do:

On my site, I'll advertise different types of trainers and psychologists, which are all a post within the custom post "Trainers". In that custom post type, there are 2 taxonomies: Locatie(Rotterdam, Amsterdam etc...) and Categorie (Psychologists, Mindfulness trainers etc...). I want to make a page that only displays posts that have the Taxonomy: categorie "Psychologist", but gives them the option to search a specific Location, using a filter for the taxonomy: Locatie.

How it looks like is that I can only display a filter that shows both taxonomies, displaying all the posts in the custom post type, and the location. Or, I can chose a location and category in the query filter, without showing any filters. But it seems like I can't do both. Can you tell me how to accomplish this, without having to create a custom post type for every category within the taxonomy "Categorie"?

Greetings,

Kerim

#1370287

My issue is resolved now. Thank you!