WordPress.org

Forums

WP_Query post_title LIKE operator (1 post)

  1. spainkid
    Member
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags