Search for custom post type only not working
I’m trying to show search results only for a specific custom post type, my code is simple and I already tested it successfully on some wordpress sites I made, but in this case (buddypress) looks like it is not working.
Here is my form:
`<form id="vendor-search" action="” method=”get”>
Search for vendors
So I set this hidden input:
and then I get a correct URL when searching, something like:
but on displayed results it is including all kind of posts and pages…
Any ideas about what can this be?
Thanks a lot!
- The topic ‘Search for custom post type only not working’ is closed to new replies.