Skip Navigation

[Resolved] Toolset View – can views be searchable?

This support ticket is created 4 years, 9 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Paul Marconi 4 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1527091

Hi there,

I have a custom post type ( 'Board of Directors') created with 'Type'. This post type won't have an archive page (so the 'has archive' checkbox is unchecked) , and I have disabled single page for this post type.
I have also created a view with 'Toolset views' to display all of those board members onto a page (let say on the About page).
For some reason, when I use the default search form to search for a member's name, the 'About' page (that has the board of directors view) doesn't show up as one of the results.

Is there a way to have the view/ queries to be searchable?

Say I have 'Jane Doe' as one of the board member, and the view is displayed on the about page. When I search for 'Jane Doe' in the search form, the search result page should have the about page show up.

Is this possible?

Thanks!

#1527325

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Paul,

Thank you for getting in touch.

Unfortunately this won't be possible to achieve and here is why.

The about us page isn't storing the actual output of the view that lists the Board of Directors, rather what is stored is the shortcode. When you are doing the default search it runs a query on the database for your searched text, so any content with that text will be returned.

Because the shortcode only renders when the page is viewed then it won't show up as one of your results.

I hope i was able to clear this up for you.

Thanks,
Shane

#1527429

Thanks Shane!
It's clear now.