Search post type

I’ve created an Archive layout for a custom post type that includes the search element.
How can I make the search show results only for that custom post type?

Hi @marketfresh,

Thanks for reaching out!

There’s no option in the Layout Builder where search result only for the custom post type you selected.

Thank you.

So, is the search element really only useful for the blog?
Can you give any hints on how to create a search for a specific post type?

Hello @marketfresh,

The layout that you created in the Layout builder runs the default search loop and display the items according to what you have structured in your custom layout. The search will return any results. If you need to remove or exclude any search item, you will have to modify the search query. Perhaps you need to check out this articles:

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.