• Resolved bowbow7

    (@bowbow7)


    Hello, Can I exclude the pages from the search query?

    https://paste.pics/b3d55d9fad1e1dae8a724b36e30ede1b

    I don’t want to include the pages in the search results I want the search to only to search the posts.

    Also, I notices in the search if I search for “?????” I got different results if I switch the language can I know please what is built in the search ? as it should give the same results in both languages.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jegstudio

    (@jegstudio)

    Hello @bowbow7,

    Our search widget uses the WordPress search algorithm and does not change the WordPress search algorithm, our plugin only provides a customizable search widget. But, to exclude a Page from the search algorithm, you can use the code in the link below which you can add to your functions.php.

    Pastebin: https://pastebin.com/a5hJvmWG

    For differences in search results in each language, considering that we did not change the search algorithm, we recommend that you contact the team of the multilingual plugin you are using for this problem.

    Thank You

    Thread Starter bowbow7

    (@bowbow7)

    Hello Team,

    Thank you for your fast replies and your hard work.

    this works fine for me, I think the default WordPress search is not 100% accurate do you suggest any replacement for it ?

    Plugin Author Jegstudio

    (@jegstudio)

    Hello @bowbow7,

    We apologize in advance, but we are not familiar with this. If you have technical skills, you can create your own custom code to suit your needs.

    Thank You

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude the pages from the search query’ is closed to new replies.