• Resolved pattt

    (@pattt)


    Hi, I created a custom post type with different taxonomies called “viajes” I have 108 of them so when use the search bar to look for one, the results displayed are A LOT.
    I would like to search an exact title and the results was the same.
    Is that possible?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    No for sure way that I know of, since all of the Search functionality around post types/taxonomies, I believe use what are known as “LIKE” queries, so it’s looking for the phrase in the entire string. I know there are a lot of filters around the WP_Query class, which is what would be getting used here, so it may be possible to intercept and amend those to use exact match SQL. However, if you’re not a developer or coder at all, that may be more than you’re able to handle at the moment.

Viewing 1 replies (of 1 total)

The topic ‘Search Custom Type by Title’ is closed to new replies.