Forums Forums Search & Filter Pro pre_get_posts adding condition to exclude search result page

Viewing 6 posts - 11 through 16 (of 16 total)
  • Trevor
    #215822

    Does this work then:

    if (is_home() && $query->is_main_query() && !is_archive() && empty( $_GET['sfid'])){

    If not, I may need to refer this to the plugin developer, Ross.

    Anonymous
    #215824

    It seems to work yes, thanks.
    Can you please not close the ticket, in case something is still wrong ?
    I have to run a few tests
    thanks

    Anonymous
    #215826
    This reply has been marked as private.
    Trevor
    #215830

    You will need to use CSS to hide it. If you inspect that li you will see it has the class sf-item-0 attached to it.

    Anonymous
    #215832
    This reply has been marked as private.
    Trevor
    #215836
Viewing 6 posts - 11 through 16 (of 16 total)