Limit search to post titles only
Adding this snippet to the functions.php of your wordpress theme will limit search to post titles only. function __search_by_title_only( $search, &$wp_query ) { global $wpdb; if ( empty( $search ) ) return $search; // skip processing – no search term…
Xem chi tiết