Forums › Forums › Search & Filter Pro › Search engine does not filter. Always show all entries.
- This topic has 13 replies, 2 voices, and was last updated 5 years, 4 months ago by Anonymous.
-
Anonymous(Private) July 25, 2019 at 4:53 pm #217248
Hi, I’m testing your search engine. The fields are created with ACF. The problem is that the search engine always shows all the entries in the results and does not filter. For example, the search engine detects that there are to select 2 or 3 rooms. But dialing two shows the tickets with 2 rooms and 3 rooms.
“Is ACF Field?” Is enabled in the options of each search field.
Any suggestions? Thank you.
Trevor(Private) July 26, 2019 at 3:00 pm #217317I see this:
https://www.screencast.com/t/987m3Jwd
I expected to see this:
[searchandfilter id="177"] [searchandfilter id="177" action="filter_next_query"] <script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ console.log("ajax complete"); var grids = document.getElementsByClassName('et_pb_salvattore_content'); salvattore['register_grid'](grids[0]); salvattore['recreate_columns'](grids[0]); }); }(jQuery));</script>
Is this extra code/lines somewhere else, or must you add them?
Anonymous(Private) July 27, 2019 at 1:48 am #217359The existing code related to your plugin is in Divi / Integracion and is as follows:
<script>(function ( $ ) {
“use strict”;
$(document).on(“sf:ajaxfinish”, “.searchandfilter”, function(){
console.log(“ajax complete”);
var grids = document.getElementsByClassName(‘et_pb_salvattore_content’);
salvattore[‘register_grid’](grids[0]);
salvattore[‘recreate_columns’](grids[0]);
});}(jQuery));</script>
Trevor(Private) July 27, 2019 at 5:38 am #217365When I select :
svzona=fuengirola
It takes me to this page:
https://suvilla.wommarketing.es/resultados/?_sfm_svzona=fuengirola
And shows me three posts. How many posts should this show?
Trevor(Private) July 27, 2019 at 5:42 am #217367Also, the search form is not on the results page. I think it may need to be.
The JavaScript you showed me, how is that output on the page? Is it inside a file, if so, which file? It is not output directly inline on the page.
Please note that we are closed for the weekend and any replies may be delayed until we open at 10AM (UK time) on Monday.
-
AuthorPosts