Forums › Forums › Search & Filter Pro › Search not displaying results
- This topic has 7 replies, 3 voices, and was last updated 9 years ago by Ross.
-
Anonymous(Private) November 11, 2015 at 6:15 pm #29529
Jake
Hi Ross,
I’m having problems with an instance of Search and filter Pro. Please see the search in question: http://midwestoutdoors.com/search-engine/fishing/
My understand is that you should be able to select any of the categories and select ‘Submit’, without any having to enter anything in the ‘search’ field. This should then provide a list of all results in the selected category. However, when I do this no results are found.
I know there are posts/content within these categories. Results are found when using the ‘search’ field without any categories selected. Could this be an issue with another plugin interfering? Please help!!!
Thanks,
Jake
Anonymous(Private) November 11, 2015 at 6:44 pm #29532Do you have your filter setup to display using an “Archive” or “Shortcode”? And if archive, what template file is being used?
If it is set to display as an Archive, and the template referenced is the default search.php, you would have this problem described because the page is being accesses without an actual search having been requested.
Remember that for any posts to be displayed and filterable, there first needs to be a loop ran that is either a ‘search’ or just a generic loop to display all posts (or limited using parameters allowable in the loop function, such as limiting to a custom post type, or a specific category, etc.).
If you just want to direct site visitors to a page that shows all (fishing) posts and then allow them to filter those to narrow down their choices, your easiest method is to use the Shortcode method, the documentation for which is here:
http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/
If you can reply with more info on how you have this particular filter and page setup I may be able to help you get it working.
🙂
TrishaAnonymous(Private) November 11, 2015 at 8:46 pm #29572Hi Trisha,
I am using the shortcode method. I have the search being performed on this page: http://midwestoutdoors.com/search-engine/fishing/, with the search form being directed to this page:
http://midwestoutdoors.com/fishing-search-engine-results/, where the results shortcake is found.Even if I have the search and results appear on the same page, no results are being shown.
I tried selecting the archive method, but it still does not seem to work. I have also forced ‘is search’ to be true, and disabled ajax.
Any help would be greatly appreciated!
Thanks,
Jake
Ross Moderator(Private) November 11, 2015 at 11:51 pm #29588Hi Jake
Can you enable auto count, and on all the fields tick “show count”?
Also, it seems like you might have recently upgraded? Did you check the release notes?
http://www.designsandcode.com/documentation/search-filter-pro/2-0-upgrade-notes/
Try to disable S&F, then enable again (there are some important processes here).
Then try to rebuild the cache.
If this does not work, the last option really is to look at the
Tags, Categories & Taxonomies
Tab, and thePost Meta
tab, and clear out their settings as there can often be conflicts in settings.Thanks
Anonymous(Private) November 13, 2015 at 7:03 pm #29823I disabled S&F and reactivated it. I also noticed there was another upgrade, so I went ahead and installed the latest version. I rebuilt the cache on multiple forms, but it is still not working.
I then created a brand new search using the short code function with auto count and show count enabled:
https://midwestoutdoors.com/jakes-test-search/You can see that the search is displaying the post counts that are relevant, so it appears to be seeing the content. However, when you perform a search, it is still not showing any results. Whats really odd about this is that the results page displays the dialog with “16 Results Found” for example. It seems as though the search is being performed and functions correctly, it just isn’t displaying the actual results. Please see the new test page mentioned above to see the issue.
This feature is necessary to our site. Please involve and developers that may be needed to fix this issue as soon as possible.
Thanks
Jake
Ross Moderator(Private) November 14, 2015 at 11:30 am #29840You know what, I think this is related to you upgrading from an old version of S&F.
I think you may have the same issue here, and it is with your pagination funcitons:
Let me know
Thanks
Ross Moderator(Private) November 16, 2015 at 10:13 am #29915Well somewhere in your template I think you are using really old pagination.
Something like calls to the functions
sf_paged_links
Either way, you can find out exactly what line errors are being created and the lines with your pagination by checking your error logs.
Then, you need to replace this with the correct usage of WP pagination. As mentioned already in the above link, this can be found in the sample template in
search-filter-pro/templates/results.php
Thanks
-
AuthorPosts