[Resolved] Search displays different excerpts depending on how the search is done.
This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user is displaying is post excerpts on the parametric search but after performing a search the excerpts don't show anymore.
Solution:
In this case the issue was being caused by the user putting a field to search for that was not available on this CPT so it was messing with the view's display.
I would recommend ensuring that the fields that are being searched for are available on the the CPT itself.
This support ticket is created 6 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.
Question 1
How do I force it to display the manual excerpt.
A. Not sure what you mean by manual excerpt, is this the default excerpt field from wordpress that you enter the excerpt in ? If so and you use the [wpv-post-excerpt] in your view output it should always give the results of that shortcode.
Question 2
Is there a better way to select the Zip Code Tag then a Text Search. We have 11,000 Zip Codes which makes a drop down not very useful.
A. The best way is to have the search bar as you have it because it'll be way too robust to use another method. Most search sites i'm aware of uses a text field for the zip code search.
Question3
Is there a way to hide all of the results from hidden link if a search is not initiated.
A. the only way to do this is to have the search results on a separate page. This is the exact setup how you have it on the homepage.
Finally i'm not sure how its giving you another excerpt based on whats searched, however i tried to do the search but it didn't result in anything being found.
I was able to take a look at this for you on the backend. So the issue with the excerpt is being caused by you search box. Also the search box isn't searching through the taxonomies. We can create a manual search filter using html like this.
<input type="text" name="wpv-wpbdp_tag">
I've added this to your view so it should now be working.