• Create a new post and publish it.

    The title is my test for search,content in it is as below:

    no host route

    Check what happen in wordpress database.

    select post_title from wp_posts where post_content like “%no%” and post_content like “%route%” and post_content like “%to%” and post_content like “%host%”;

    The post named my test for search will not in the select’s result.
    Type no route to host in wordpress search bar,and click enter.
    The post named my test for search shown as result.

    search result

    I found the reason that the webpage contain to ,in the left upper side corner ,there is a word Customize which contains the searched word to.
    How to change such search action in wordpress serach bar?
    I want to make the search behavior in wordpress saerch bar ,for example ,when you type no route to host ,equal to the following sql command.

    select post_title from wp_posts where post_content like “%no%” and post_content like “%route%” and post_content like “%to%” and post_content like “%host%”;

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change the search action in wordpress serach bar?’ is closed to new replies.