Forums › Forums › Search & Filter Pro › 2.0.2 upgrade: results found, but not displayed
Tagged: 2.0.2, results not found
- This topic has 12 replies, 2 voices, and was last updated 9 years, 12 months ago by
Anonymous.
-
Ross Moderator(Private) November 3, 2015 at 12:49 pm #28821
Hi Tim
I’m getting a
Your access to this site has been limitedmessage (from WordFence).Thanks
Ross Moderator(Private) November 5, 2015 at 8:31 am #28974Hey Tim
So the issue is you can’t actually see the results, but you get the text
Found 14 Resultsetc?Have you tried customising the template, because it looks like the loop, that display the results has been removed?
Thanks
Ross Moderator(Private) November 5, 2015 at 8:34 am #28975Also I can see for some reason that the S&F Javascript is not being loaded – in the source code of your page I should be able to find a reference to
search-filter-build.jsBut thats not there :/
I think once this is in your source it should work.
To force include the scripts simply add the code from this post:
Thanks 🙂
Anonymous(Private) November 6, 2015 at 4:37 am #29028Ross, I checked and found /wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.js
I also tried adding
wp_register_script( 'search-filter-plugin-build', home_url("/wp-content/plugins/search-filter-pro/search-filter-build.js"), array('jquery', 'jquery-ui-datepicker'), '1.4.3' ); wp_localize_script('search-filter-plugin-build', 'SF_LDATA', array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'home_url' => (home_url('/')), 'sfid' => '' )); wp_register_script( 'search-filter-chosen-script', home_url("/wp-content/plugins/search-filter-pro/chosen.jquery.min.js"), array( 'jquery' ), '1.4.3' ); wp_enqueue_script( 'jquery-ui-datepicker' ); wp_enqueue_script( 'search-filter-plugin-build' ); wp_enqueue_script( 'search-filter-chosen-script' );to functions.php, updated the file, cleared my cache, reloaded the page, and I’m still not getting any results. Everything worked fine before I upgraded. FWIW, I (previously) created custom results files for my 2 SF pages, and they were working until the upgrade to 2.0.2
-
AuthorPosts