• Leo Blanchette

    (@leoclipartillustrationcom)


    I’m creating a theme which is very heavy on search. I have to write a query that can look in a custom post type (or taxonomy, or both) to search:

    1. Terms
    2. Title
    3. Content
    4. Phrases/word combinations
    5. Word fragments

    For instance, the search “bread” would include something with wonderbread in the title or keywords. The search “dog catcher” would return a post with dog in the title, catcher in terms.

    Before I delve into touching the database directly with my assumptions, I wanted to know if there is a good existing query floating around out there that can be slightly modified.

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Direct Query – Custom Post Type: Terms, Title.’ is closed to new replies.