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%'
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%'
You must be logged in to post a comment.
Alternatively, (and since it is specified in question) you can achieve this by actually using “WP_Query” class:
Something like this?