Forums › Forums › Search & Filter Pro › Only displaying a maximum of 2 results
- This topic has 7 replies, 2 voices, and was last updated 4 years, 1 month ago by
Trevor.
-
Anonymous(Private) January 7, 2021 at 2:27 pm #271928
split by @trevorsf
I’ve started using your plugin and I want to find out why for some reason, the search filter is only displaying a maximum of 2 results even though it’s been set to show 10 posts per page.
I also wanted to find out how I can get my search results to display similar to Educare Resources. Any help towards achieving this would be greatly appreciated.
The link to my search form on my website is:
https://chinaraenterprises.com/resources/Thanks
Trevor(Private) January 8, 2021 at 3:27 am #272011A number of issues.
#1 You are not using the additional Divi extension plugin from us but I think this might be better for you – the link (a blue button) to download it is at the top of this guide (which you also need to read and carefully follow):
https://searchandfilter.com/documentation/3rd-party/divi/
#2 You are searching four Post Types:
https://www.screencast.com/t/UWilJp9DFng
Posts
Courses
Lessons
TopicsDo you need to be searching all four? The problem is that you have Category and Tag in your form, but WordPress uses these for Posts only (they should not really be used for any other Post Type). So, be settings includes:
https://www.screencast.com/t/XzRd1oVKDzLP
You will exclude any Courses, Lessons or Topics. Also, having two lines of includes will reduce the number of results.
So, IF you need to have all four post types, using taxonomies to store the terms (and Category and Tag are taxonomies, as well as any custom taxonomies you or any plugin may have made) and be able to search across all four post types in one search is not possible. Instead, you need to make two custom fields (I would suggest using the free Advanced Custom Fields plugin to do this), because, with custom fields you can assign them to more than one Post Type.
#3 You should not need to have these set:
-
AuthorPosts