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

  1. MarceFX
    Posted 3 years ago #


    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?



  2. Mikko Saari
    Plugin Author

    Posted 3 years 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

  • Relevanssi - A Better Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.