As the title suggests, I'm trying to find a post through its post_content
.
How can I do it?
Thanks
Example: SELECT * FROM DBname WHERE post_content LIKE '%phrase%'
Wordpress
As the title suggests, I'm trying to find a post through its post_content
.
How can I do it?
Thanks
Example: SELECT * FROM DBname WHERE post_content LIKE '%phrase%'
Best Answer
Alternatively, (and since it is specified in question) you can achieve this by actually using "WP_Query" class: