I do not want to complicate the plugin’s settings. This feature will not be used so commonly. The solution requires coding.
PHP solution:
Such things can be achieved using the WP Hooks to manipulate final SQL. You can use a posts_search
filter with the priority more than 501 – https://developer.wordpress.org/reference/hooks/posts_search
Take a look how I manipulate this filter in the class-search.php
file. You can copy the search_filters()
method to you functions.php file and use it as a callback function of the posts_search
filter. In this function remove the line:
$search .= "($wpdb->posts.post_title LIKE '{$n}{$term}{$n}')";
Best,
Damian
-
This reply was modified 7 years, 4 months ago by
Damian Góra.
Damian,
I tried to do what you suggested, but to no avail. The plugin does not return any result anymore. Unfortunately this is beyond my current coding skills.
Thanks