Forums › Forums › Search & Filter Pro › Plugin doesn't work properly using website navigation menu
- This topic has 11 replies, 2 voices, and was last updated 8 years, 1 month ago by Anonymous.
-
Anonymous(Private) November 4, 2016 at 8:03 am #68544
Hello, I’ve set three different search forms, using shortcode to display search results:
http://www.oltre-kit.it/kit/
http://www.oltre-kit.it/box/
http://www.oltre-kit.it/parts/The plugin is set to search in Portfolio post, using custom taxonomies.
Everything seems to work properly, but only if the page is opened with direct link. If I use the navigation menu, I need to reload the page, otherwise nothing happens… How can i solve this?
ThanksTrevor(Private) November 4, 2016 at 11:41 am #68609I see what is being done. You are using Ajax to reload the part of the page that is the content and change the URL shown in the browser, but my guess is that our plugin is not seeing the change. On the Display Results settings tab, there are three checkboxes. The last one is to use AJAX only on the results page, and is usually checked (ON). What happens if it is off?
Anonymous(Private) November 4, 2016 at 4:47 pm #68711I’ve tried in this page: http://www.oltre-kit.it/kit/
But the result is the same, unfortunatelyTrevor(Private) November 7, 2016 at 11:28 am #68964OK, I can see what the issue is, but how to fix it is the question. What is happening is the the menu system is using Ajax to load the page and the S&F javascript is not being triggered so that it can bind to the search form, and so the search form loses its functionality. I will speak to Ross, as I have a feeling he may be able to fix this. I am not sure when he will be free, as he trying to put to bed an update to the plugin.
Trevor(Private) November 7, 2016 at 5:06 pm #69070If the code in results.php looks like this:
<?php if ( has_post_thumbnail() ) { echo '<p>'; the_post_thumbnail("small"); echo '</p>'; } ?>
Change that block to this:
<?php if ( has_post_thumbnail() ) { echo '<a href="'; the_permalink(); echo '">'; the_post_thumbnail("small"); echo '</a>'; } ?>
I think. If you have a different image size, like thumb or thumbnail, or you have an array the
the_post_thumbnail
to add classes, then edit accordingly. -
AuthorPosts