Skip Navigation

[Resolved] Search using shared taxonomy over multiple custom post types.

This support ticket is created 5 years 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by collinC-2 5 years ago.

Assisted by: Waqar.

Author
Posts
#1413933

I'm working on an employment website. It's got 3 custom post types (CPT): employer, employee, and jobs. Each of these custom post types shares an Industry taxonomy. If I was just searching on one custom post type, I understand how to set up a filter with the taxonomy. What is the best way to set up a search on a view with all of these custom post types? Can I use the same widget or will I need one for each of the custom post types? Please let me know if I can provide more information on my request. Thank you.

#1414325

Hi Collin,

Thank you for contacting us and I'd be happy to assist.

If your custom taxonomy is shared by multiple custom post types, its search filter will also work for all those post types.

You'll create a new post view and in the "Content Selection" select all those post types ( i.e. employer, employee, and jobs ).

Next, you'll add the search filter for this taxonomy, the same way as you'll add it in a view with a single post type.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1415113

My issue is resolved now. Thank you!