Search only specific post type

  • orbiteers
    Participant
    # 1 year, 5 months ago

    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, 5 months ago

    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, 5 months ago

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

    wpsolr
    Keymaster
    # 1 year, 5 months ago

    Can you explain from where?

    orbiteers
    Participant
    # 1 year, 4 months ago

    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.