Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search resules include related posts as well. how to exclude that.
This topic contains 12 replies, has 2 voices, and was last updated by Ernest Marcinko 2 years, 7 months ago.
- AuthorPosts
- June 7, 2021 at 9:03 am #33548
On https://artroomhero.com/search-lessons/
When i search “Teacher” in either of the search input box (left or top or even on the home page input box)
The results shows a few posts boxes which has word “Teacher” in their individual related Posts Section. I wnat to exclude that. How can it be done.
For example. Teacher search result will show a post named “Fun and Focus” Post.
The content of Fun and Focus does not have the word teacher but its related posts section has the word teacher and hence its shown in the results.
How can i avoid this.Also Is it possible to keep all check boxes unchecked (display all posts) and whne i check mark on a filter, the filter works. When i check all button, all posts display. So basically. All unchecled and all checked show all posts. on Load i want all boxex unchecked.
Thank you
June 7, 2021 at 12:42 pm #33550Hi,
Thank you for the details!
It looks like one of the custom fields seem to contain the teacher keyword, but it would be very hard to tell which one exactly. So I made a tiny modification to the search configuration. I have enabled the index table engine, and configured it to search the lesson related custom fields. Then I recreated the index table.
Best,
It should not contain the unwanted results for the related posts keywords.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 7, 2021 at 7:41 pm #335541) Thank you. This works. Can you please tell me the steos to do this as I have to replicate this on two otehr searches in the same website. Thanks.
2) Also Is it possible to keep all check boxes unchecked (display all posts) and whne i check mark on a filter, the filter works. When i check all button, all posts display. So basically. All unchecled and all checked show all posts. on Load i want all boxex unchecked.
June 8, 2021 at 4:03 pm #335571. Well, basically all I did was what I sent through the screenshot. Just selected the custom fields, then re-created the index. Then I got back to the search instance options to enable the index table.
2. Sure, you can change that here: https://i.imgur.com/XFVrl67.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 11, 2021 at 4:43 pm #33622Thank you so much.
I have another point where i need help.On the Search Lesson page
https://artroomhero.com/search-lessons/The left filters are using an AND operation for filtering.
For example, a post is under the cateogry
English, Other Medium and Instilling Creative Confidence.If i select ANY of the above in the left filters, the post should come up. Currently the post shows up only if ALL the three categories are checked.
Thank you.
June 14, 2021 at 3:31 am #33633Hi
Please help me in solving thisOn the Search Lesson page
https://artroomhero.com/search-lessons/The left filters are using an AND operation for filtering.
For example, a post is under the cateogry
English, Other Medium and Instilling Creative Confidence.If i select ANY of the above in the left filters, the post should come up. Currently the post shows up only if ALL the three categories are checked.
Thank you.
June 14, 2021 at 7:50 am #33635Hi!
You are welcome. Try changing this option, it should do the trick: https://i.imgur.com/pPPM95A.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 15, 2021 at 8:52 pm #33679Thanks. It worked.
But I’m facing another issue.On the Search Lesson page
https://artroomhero.com/search-lessons/When i select any individual check box or a multiple checkboxes, the results are contrained to only 6 pages in the pagination. When there are more posts.
When i click on reset, I see only 6 pages in the pagination.
What could have gone wrong.Also is ther a custom message that i can Write when there are no search results. Currently it says “no Reuslts”. I would like to add a custom message here. Is this Possible.
Thank you for all your help.
June 16, 2021 at 9:29 am #33682Try increasing the result limits here: https://i.imgur.com/lURKHBB.png
That should affect the number of final pages.You can change the text here: https://i.imgur.com/CF2QVzG.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 12, 2021 at 12:18 pm #33901You cannot access this content.July 12, 2021 at 1:05 pm #33906Well, you can force the settings state hidden on the mobile options: https://i.imgur.com/MNQyo2Y.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 18, 2021 at 7:44 am #34809You cannot access this content.September 19, 2021 at 9:36 am #34820Hi,
I recommend experiment with the checkbox logic here: https://i.imgur.com/JFriACQ.png
Best,
The default value fits most of the cases, but I recommend trying the other two as well, maybe it works better for you.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
The topic ‘Search resules include related posts as well. how to exclude that.’ is closed to new replies.