Search resules include related posts as well. how to exclude that.

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 Ernest Marcinko 2 years, 7 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #33548
    cubegrfx98
    cubegrfx98
    Participant

    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

    #33550
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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.
    It should not contain the unwanted results for the related posts keywords.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #33554
    cubegrfx98
    cubegrfx98
    Participant

    1) 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.

    #33557
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    1. 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 :)


    #33622
    cubegrfx98
    cubegrfx98
    Participant

    Thank 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.

    #33633
    cubegrfx98
    cubegrfx98
    Participant

    Hi
    Please help me in solving this

    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.

    #33635
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    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 :)


    #33679
    cubegrfx98
    cubegrfx98
    Participant

    Thanks. 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.

    #33682
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Try 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 :)


    #33901
    cubegrfx98
    cubegrfx98
    Participant
    You cannot access this content.
    #33906
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Well, 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 :)


    #34809
    cubegrfx98
    cubegrfx98
    Participant
    You cannot access this content.
    #34820
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    I recommend experiment with the checkbox logic here: https://i.imgur.com/JFriACQ.png
    The default value fits most of the cases, but I recommend trying the other two as well, maybe it works better for you.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘Search resules include related posts as well. how to exclude that.’ is closed to new replies.