WordPress: Create WP_Query with “post_title LIKE ‘param%’”?

This is most often asked a question by WordPress developers. Here are a few easy steps to resolve this problem.
One way to perform this operation is :

Alternate way and standard way to solve this operation is using filter:

Now we can pass the title as the erweb_title argument in WP_Query.

Leave a Reply

Your email address will not be published. Required fields are marked *