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.
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.