Forums Forums Search & Filter Pro Exclude from search

Viewing 10 posts - 1 through 10 (of 13 total)
  • Anonymous
    #249032

    This topic isn’t really specific to this plugin, but maybe some WordPress search pros can assist…

    I have a custom post type (created with Pods) that I want to be searchable through this plugin but NOT through the global WordPress search feature.

    In Pods, I have “exclude from search” checked, but they’re still showing up in the WordPress global search. In Relevanssi, “index” is checked for the post type but “exclude from search” displays “yes.” If “index” is not checked, the post type isn’t searchable through this plugin nor the global WordPress search.

    Is what I’m looking to do possible?

    Trevor
    #249089

    The problem is that our plugin’s search box asks WordPress (or Relevanssi) to do that part of the search first, and lets them decide what to return back to us. I am not sure how you could achieve what you want, but I will refer this the plugin developer, Ross, for his input.

    Ross Moderator
    #249185

    Quick question, do you need Relevanssi enabled for both global search, and S&F search?

    Thanks

    Anonymous
    #249193

    I don’t think so. Relevanssi – I believe – is currently just being used to complement the Search & Filter results on the one page it’s being utilized.

    Ross Moderator
    #249207

    Hi again

    So I’ve just been having a look, but I can’t seem to find it.

    Basically, I think Relevanssi used to have an action / filter, that meant you can disable it on the default WP search. I would look for that (or maybe its moved to a setting in the admin area).

    As to why the post type is not showing, I’m not sure, it could just be the way your theme implements the query for searches – I would try to change hte post type using pre_get_posts or something similar – I also found this:
    https://toolset.com/forums/topic/search-not-finding-a-custom-post-type/

    Thanks

    Ross Moderator
    #249211
    Anonymous
    #249238

    As to why the post type is not showing, I’m not sure, it could just be the way your theme implements the query for searches – I would try to change hte post type using pre_get_posts or something similar – I also found this:
    https://toolset.com/forums/topic/search-not-finding-a-custom-post-type/

    The results are all correct. I just need the custom post type results to display only when using Relevanssi + Search & Filter and not within the global WordPress results.

    Ah, this might be the Relevanssi code:
    https://wordpress.org/support/topic/disable-relevanssi-for-some-searches/

    It’s likely I don’t understand that link, but I’m not sure how it fits.

    Anonymous
    #249240

    It’s likely I don’t understand that link, but I’m not sure how it fits.

    Correction: If I disable a custom post type in Relevanssi, it will no longer display on the page I need them to display (I think).

    Anonymous
    #249242

    (Whoops, triple post…)

    If it helps and if anyone has time, we can do a screen share. It might be easier that way.

    Trevor
    #249246
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 13 total)