How to search content in posts table
-
Hello Everyone,
I want to search some text in the “post_content” field of the $wpdb->posts table. When I executing mysql query for this using “LIKE’%text%'”, it is also searching that text in the image tag(“<img>”) src of the post_content. I want to search the text only in the content not in the src.
Can anyone suggest me what I can do here?
Thanks in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to search content in posts table’ is closed to new replies.