Skip Navigation

[Resolved] Adding a field for user to search Custom Post Type Agents by the Post Title

This support ticket is created 4 years, 6 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
- 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 3 replies, has 2 voices.

Last updated by Waqar 4 years, 6 months ago.

Assisted by: Waqar.

Author
Posts
#1617515

Tell us what you are trying to do? Trying to add a search field. the page that displays all the Agents (which are custom post types). I want the user to type in the search field the agent they are looking for, click search, and that agent display

Is there any documentation that you are following? no

Is there a similar example that we can see?

What is the link to your site? hidden link

#1619227

Hi,

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

You can include a pos title linked text search field in your view as explained in this guide:
https://toolset.com/documentation/user-guides/views/filtering-views-for-a-specific-text-string-search/

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

regards,
Waqar

#1619819
insert-search-shortcode.png

I have followed these instructions very carefully. And the search box for user to type into never appears on the front end. I believe the guide is for an oder version of Views, as I don't see where the "Filter Editor" even is. I have attached the image of what I cant find. The instructions say "Scroll down to the Filter Editor section - you will need to ensure that the cursor is within the filter control shortcode:" but scroll down where, on what page?

When I tried ago add the Query filter to my View, I set up like the instructions, but then it never showed up on the front end. Is it supposed to show automatically, or do I need to add a shortcode somewhere?

thank you for your help.

#1622289

Hi,

Thanks for writing back and I apologize for the delay in getting back on this.

The "Filter Editor" section is available when working with a view designed using a classic editor and you're correct that the documentation references the old name "Filter Editor" for a section that has been renamed to "Search and Pagination".
( screenshot: hidden link )

We appreciate you brought this forward and I'll forward this guide to the concerned team so that it can be updated, accordingly.

Note: If you don't see this section, please make sure that it is turned on from the "Screen Options" drawer at the top right corner.
( screenshot: hidden link )

Similarly, when using the new Blocks based editor for creating a view, the steps will be different:
https://toolset.com/documentation/getting-started-with-toolset/filter-content-lists-and-add-custom-search/

regards,
Waqar