Skip Navigation

[Resolved] How to add custom search option to filter post types ?

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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 5 years, 3 months ago.

Assisted by: Nigel.

Author
Posts
#1183497

Am trying to add custom search, which can allow authorized user to search the content.

I've gone through documentation that is there in
https://toolset.com/documentation/user-guides/front-page-filters/#custom-search-page
but options in this documentation do not match with options i see in my site toolset views.

I've multiple post types in my site, am looking to add a input field(search) & a button which can filter all the post types and display the results.
Very similar to the search option you have in Toolset Professional support search https://toolset.com/forums/forum/professional-support/

My website : hidden link

#1183502

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Screenshot 2019-01-14 at 10.29.01.png

Hi Troy

You want to be able to perform a text search across multiple post types, is that right?

When you create a custom search View, in the Content Selection, choose all of the post types you want to include in the search.

In the Search and Pagination section, use the Text search button to insert a text search control (screenshot), as well as a submit button.

You can choose whether to search just post titles, or post titles and post content. If you also wanted to include custom fields in the search, you would need to add Relevanssi, as described here: https://toolset.com/documentation/user-guides/searching-texts-custom-fields-views-relevanssi/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.