WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
2 different search boxes (custom post type and regular) (2 posts)

  1. MarceFX
    Member
    Posted 1 year ago #

    Hi,

    I have this exact issue: http://wordpress.org/support/topic/plugin-relevanssi-a-better-search-2-diferent-searchs-with-2-diferent-filters?replies=19

    The thread is old and it looks like the new Relevanssi version doesn't have a way to change "All public post types" to "Everything". At least, I can't find it.

    I have 2 search boxes:

    1. Blog search. When I use it I get this kind of URL: http://site.com/?s=term, but it also displays matching custom post types.

    2. Custom post types: http://site.com/?s=term&post_type=product
    It displays only custom posts, as needed.

    Any way to fix this?

    Thanks

    http://wordpress.org/extend/plugins/relevanssi/

  2. Mikko Saari
    Member
    Plugin Author

    Posted 1 year ago #

    The post types to index are now chosen with the checkboxes under "Indexing options", so just check all boxes that apply. Otherwise it should work just like before.

    For search 1, you can also add a post_type parameter listing the post_types you want to include in the search.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.