Hi.
I'm trying to make a filter for books. I have my custom fields all working, but I do not see "custom search settings on my view", in place of that appears "show only filter options that would produce results" and it almost crash the web. It turns very, but very slow.
I need to make search filters and print the results on another page.
Please, you can see what I got till now here: hidden link
(Note that the results page displays the full View, search filters and results, so that the user can modify their search without returning to the original page.)
Hi Nigel.
Thanks for your response.
Firt of all, as you can see on the screen above, I've created a CPT calle filters, just for organization purposes. This way I can create all my search filters inside there without create any extra pages.
Well, so I need only search forms on an "Archive Page". This is my main problem.
I always prefer to hardcode the theme, I always use my own Template framework, so I put <?php echo do_shortcode('[wpv-view name="filtro-biblioteca"]'); ?> on archive-biblioteca.php.
I just create a page too, as you sugest. But I can't show the results on that page. And now the original View send me this mesaje: The update has failed. The response is not a valid JSON response.
I don't really follow what you mean by adding all of your filters to a single View for organization.
But, in any case, if you create a View with the block editor then the only way you can insert that View somewhere else is using the View block (insert an existing View).
If you insert the View using a shortcode then all of the block-related styles of the View are lost (including, for example, if you output the results as a grid).
You would need to work with the legacy Views editor if you intend to insert it via shortcodes.
And in that case you'll find that you can use different shortcodes for inserting just the search form or the results on another page.
To see the correct format for the shortcodes try editing a page with the classic editor and insert the View using the Fields and Views button, and you'll see the option for what you intend to insert, and if you follow the steps you should get the shortcodes you need when splitting the View results on a separate page.
Hi Nigel.
I mean that I organize my search views into a CPT called "Filters". (you can seet it on the printscreen I've sent)
I just realise that when editing the "original View" (that on a CPT) the option for show the results on another page do not appear. Maybe because I have it on a CPT, and not on a page.
I've created a new page for the results and put the created view on it, and now this option appears and I can select a page.
Sorry, I'm not sure where we are at, I don't understand your last reply in the context of my previous reply.
If you are creating a View with the block editor (specifically, the View block, which is how it appears in your screenshots), then the only supported way of displaying this same View somewhere else (in this case showing just the search form) is by inserting a View block where you want the search form to appear, as described in the earlier replies and documentation.
You have more choices when creating a View with the legacy editor which you insert via shortcode, with different shortcodes for inserting the search form and the results. (I expect that inserting Views created with blocks via shortcode would offer the same options, but they won't work correctly inasmuch as none of the styling of the View will work on the front end.)
If you still have a problem, could you please try to explain exactly what it is. For example, I'm not sure what you mean when you say you have a View on a CPT. Are you talking about adding a View to a Content Template?
The topic ‘[Closed] Search results on another page’ is closed to new replies.