So I have this from Query Monitor:
AND (((zp_posts.post_title LIKE '%mercedes%')
OR (zp_posts.post_excerpt LIKE '%mercedes%')
OR (zp_posts.post_content LIKE '%mercedes%')))
AND zp_posts.post_type IN ('post', 'page', 'attachment')
AND (zp_posts.post_status = 'publish'
OR zp_posts.post_author = 1
AND zp_posts.post_status = 'private')
ORDER BY zp_posts.post_title LIKE '%mercedes%' DESC, zp_posts.post_date DESC
I would like the searches queries to target only post_title and post_content, exclude all others parts. Any idea in achieving that?
/?s
. I don't have any plugins or custom functions that would affect search. The caller isWP_Query->get_posts