Skip to:
Content
Pages
Categories
Search
Top
Bottom

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:
    `mywebsite.com/?post_type=vendors&s=Marketing`
    but on displayed results it is including all kind of posts and pages…

    Any ideas about what can this be?

    Thanks a lot!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.