Support » Plugins and Hacks » WP_Query post_title LIKE operator

  • spainkid

    (@spainkid)


    I’ve got a WP_Query that goes like this:
    WP_Query("post_type=songs&showposts=50&orderby=title&order=asc");

    I want to filter out results to those that match a certain letter that’s passed into the function where I have this query.

    I know how to do this with mySQL, but was wondering if there’s a LIKE operator available in the WP_Query parameters. If not, how could I do this through filters?

  • The topic ‘WP_Query post_title LIKE operator’ is closed to new replies.