Custom search [URGENCY]

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 7 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2175
    Weine Oliveira
    Weine Oliveira
    Participant

    how to filter your search just for the custom post type I created? ie the output of the search will be displayed only if results meet any custom post type.

    #2178
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    If you only want to display the custom post types and not other types, then you should disable the “Search in posts” and “Search in pages” option on the general options panel and select the custom post types you want to use on the same panel. (“Search in custom post types” option)

    https://i.imgur.com/7zp19Lk.png

    You can also find more details about that in the documentation.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.