How to change the search action in wordpress serach bar?
-
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.
Typeno route to host
in wordpress search bar,and click enter.
The post namedmy test for search
shown as result.I found the reason that the webpage contain
to
,in the left upper side corner ,there is a wordCustomize
which contains the searched wordto
.
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 typeno 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%”;
- The topic ‘How to change the search action in wordpress serach bar?’ is closed to new replies.