Forums › Forums › Search & Filter Pro › Integration with Advanced Custom Fields
- This topic has 21 replies, 2 voices, and was last updated 9 years, 5 months ago by Anonymous.
-
Ross Moderator(Private) June 12, 2015 at 1:28 pm #19426
Ok I had a look
It doesn’t matter what a user searches there is always no results.
This is because of a problem in your template.
Please see this question about options and possibly how to fix:
http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/#h-bad-templateThanks
Ross Moderator(Private) June 12, 2015 at 1:52 pm #19429Ajax is working on this link – If is search for arduino and press submit, the results update.
If I change the category dropdown on this link the results also update, via ajax.
Please check again.
Thanks
Ross Moderator(Private) June 12, 2015 at 1:52 pm #19430Also I have noticed, you are not using the latest version of the plugin I sent you.
Thanks
Ross Moderator(Private) June 12, 2015 at 2:27 pm #19437Yes exactly
By default, when a page loads, your content is hidden.
Then your theme (probably) runs a script when a page loads, and fades in your content in a nice style.
Now as I explained before, when making an ajax request, S&F (or any other plugin) will fetch that page, grab the results, and put them inside the results area.
But, because it is an ajax request, the script used by your theme to “fade in” your projects when the page loads is not run.
Any plugin loading your content via ajax will have this issue, the content is hidden.
So you have 2 options:
1) disable ajax, so whenever a form is submitted, your page will refresh and load the scripts from your theme
2) when S&F completes its ajax request (and loads the results, which are still hidden) run a script to show your results. This is something you would need to write yourself, or, something that may be accessible from the theme as simple as a function call.
As a really last after thought, if it was a plugin and not your theme causing this fading effect then you could disable the plugin.
To be honest, if you want to use a theme/template file for displaying your results I think you will run in to the same issue with any plugin if you also wish to use Ajax
Thanks
-
AuthorPosts