Search only specific post type

  • orbiteers
    Participant
    1 year, 10 months ago #23565

    Hello! We’ve got multiple post types that we need a search for, but ideally, if you searched from the products page you’d go to a set of search results with only products on it. Is there a way to search *just* one specific post type at a time depending on where you searched from?

    wpsolr
    Keymaster
    1 year, 10 months ago #23566

    On the standar search page “?s=”, WPSOLR will search in all your indexed post types declared in screen 2.2, with the exception of WooCommerce search which is restricted to products.

    orbiteers
    Participant
    1 year, 10 months ago #23572

    But there’s no way to restrict it for other post types?

    wpsolr
    Keymaster
    1 year, 10 months ago #23573

    Can you explain from where?

    orbiteers
    Participant
    1 year, 10 months ago #24563

    Thanks for the reply, this led our team in the right direction.

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

You must be logged in to reply to this topic.