users search keywords only match the title and content, if an article title and content does not have this keyword, then do not need to display the search results, hope God can give some suggestions! Thank you
users search keywords only match the title and content, if an article title and content does not have this keyword, then do not need to display the search results, hope God can give some suggestions! Thank you
this is the reason for the fuzzy search condition that comes with WordPress. You can find the where condition of sql search in the source code
wordpress. When searching, by default, the title (post_title), content (post_content), summary (post_excerpt) and search keywords are compared with like. For more information, please refer to the parse_search function:
/wp-includes/class-wp-query.php -> parse_search()
if you want to modify it, you can modify
add_filter('post_search', function($seach) {
// $search
...
});
through the posts_search hook. Previous: Mysql 'where index column = xx and AMISOM index column = yy' sometimes does not take the index?
WordPress background-> appearance-> Edit-> template function (functions.php) resolve invalid password recovery link function reset_password_message ($message, $key) { if ( strpos($_POST[ user_login ], @ ) ) { $user_data = get_user_by( em...
configure ssl.confvirtualhost httpd.confsslinclude httphttps the certificate was used by me before, and the original configuration file forgot to save after migrating the website. ...
how to solve this problem? ...
I am modifying a WordPress plug-in that needs to be intercepted from the source code of the web page generated by WordPress. However, there are occasional cases of backslash + number in the source code, and the matching result is abnormal, and the ba...
problem description the environmental background of the problems and what methods you have tried related codes Please paste the code text below (do not replace the code with pictures) what result do you expect? What is the error message actu...
how does wordpress call a field information in the database? I want to call the meta_ value in the wp_usermeta table in the wp database. How to call the information in the red box in the picture with PHP? is the name of the calling avatar. The default...
I put the following code in the fuction.php file in the xxx- child theme folder. It doesn t work, but it works in the parent theme. I want to put it in a child theme, so as not to add this code to upgrade the parent theme. Excuse me, where does it nee...
in wordpress, the attachment is saved in the same table as the article, but all the information in the attachment is saved according to the following format. Why this format? by the way, how did this format come from? a:5:{s:5:"width";i:800...