This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user wanted to start their archive search with an empty result page first, then display the results after a search has been made.
Solution:
You can do this by using our conditionals to check for URL parameter that would appear after the search has been done.
We are using the [wpv-conditional if="( '[wpv-search-term param='wpv_view_count']' ne '' )"] shortcode to check if the [wpv-search-term param='wpv_view_count'] shortcode is empty. If this 'wpv_view_count' shortcode is not in the url then it would mean a search has not yet been done.
This way we can use this to hide the results unless a search has been done.
This support ticket is created 5 years, 2 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.
Sorry for this stupid question but i were unable to find an answer in Toolset documentation and/or examples.
I need a Custom Post Archive custom search page with empty list displayed until user enter a valid code and clicks on search button.
So i want a page with only search form displayed, then, when the user insert a code and clicks on search button, the resulting custom post list appear under the form.
At this time, when i load the page, all the custom posts are displayed under the search form.
The same happens if i use a View instead of an Archive
Is there any documentation that you are following?
NO
Is there a similar example that we can see?
NO
What is the link to your site?
here is the page hidden link
Add it to your toolset custom code in Toolset -> Settings -> Custom Code and then activate it. Note you will need to change the 9999 to the ID of your archive.
I'm checking the wpv_view_count param is present in the url. If it isn't then the results are hidden. Once this parameter is available then the results will be show.