Forums › Forums › Search & Filter Pro › search results conflict with brizy template
- This topic has 5 replies, 2 voices, and was last updated 4 years, 1 month ago by Trevor.
-
Anonymous(Private) October 21, 2020 at 4:54 pm #263663
Hello,
first of all – thanks for the great Search & Filter Pro plugin!
But I ran in a problem which I couldn’t solve after days of trying a lot of different options (I think I have tried them all):I created a speaker search form for a recording studio.
I’m using a brizy-builder template for the search results,
the results are shown perfectly,
but the browsing through the search result pages doesn’t work.
If I use the normal WordPress search, it works fine with the same brizy template.
A mutual blocking of different scripts?
You can check it out here:
https://dev2.mlhoffmann.deThe search & filter form is at the top of the page,
the simple WordPress search at the bottom (- type in there ‘Mar’ e.g., it searches only the titles of the custom post type ‘speakers’).Thanks for any help and your time!
Trevor(Private) October 21, 2020 at 8:02 pm #263688Maybe try a different method? I assume that the template is built visually?
Can you make an actual page in WordPress for the search results, place the results grid and search form as before, then add before the results, this shortcode (it will not appear to do anything, but it might link the form and results):
[searchandfilter id="9609" action="filter_next_query"]
Then, in the form, change the Display results Method ot ‘Custom’, enter the full URL of the results page, and, initially, test with Ajax OFF.
Anonymous(Private) October 22, 2020 at 12:40 pm #263728Thanks, Trevor, for your reply.
Unfortunately it doesn’t work… something with the archive module of brizy and S&F Pro archive setting seems to be incompatible. I will ask brizy support about that.
I think I checked all kinds of settings displaying the search results in the meantime.
What is working with brizy template is using shortcode – but here the problem is that it’s not showing the content of each post on the results page (in this case the audio-players, which is essential), but the excerpts. And my knowledge to change it to the content (changing ‘the_excerpt’ to ‘the_content’ at line 60 in results.php) is not enough; after this change I got a loop in the loop and a screwed up page.
Any idea how I can do this? It good be proper workaround.Thank you.
Trevor(Private) October 22, 2020 at 1:55 pm #263740When asking Brizy, what would be useful is if the have a hook where you can add an extra custom argument to the wp_query().
Are you able to show me a page using our shortcode method where you have changed the results.php template? What you suggest should work, but it depends how you implemented it on the page. Is it the Brizy loop content that repeats for each post? If so, then I can guess how that is happening, and that will not work, as it is their loop inside our loop.
Anonymous(Private) October 22, 2020 at 9:25 pm #263788I prepared the website so that it’s showing search results using shortcode – please do simply a new search.
To do this I had to embed a shortcode-element in brizy-template.
Changing line 60 of results.php to ‘the_content’ has the effect that it seems to run brizy loop as the first result and then repeating empty results – and the players are not shown at all.I will keep you up to date with what brizy support will say.
Thanks again for your time and your investigation! -
AuthorPosts