Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Blank options appear in search filter

Viewing 10 posts - 1 through 10 (of 18 total)
  • Keith White
    #271724

    Our client recently removed a few people from their website which has resulted in a few blank options appearing in the filter. They don’t want to take the time to go to each item that the people were associated to and de-associate them (via ACF) each time they want to remove someone. Is there a quick fix to eliminate the blank options from showing?

    Trevor Moderator
    #271745
    This reply has been marked as private.
    Keith White
    #271786
    This reply has been marked as private.
    Trevor Moderator
    #271790

    You could use this filter:

    https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object

    To check which options have blanks (is it for labels or values, or both) and remove them from the array, but that can also sometimes go wrong. It would also slow things down a bit.

    I am thinking jQuery might work, but you would need to code that yourself.

    Keith White
    #271799
    This reply has been marked as private.
    Trevor Moderator
    #271807

    As the field is a Post Meta field, the easiest option is to set the list to manual values and simply add all but those.

    But, each time they add a new one to the site, or remove one, they would have to manually adjust the list.

    Keith White
    #271809

    Ugh, we try to make things as easy as possible for our clients and we really need to avoid them having to manually add/remove items each time. If we wanted to do this via the Filter Input Object or via jQuery, any insight as to how to try and accomplish it?

    Trevor Moderator
    #271812

    I have referred this to the plugin developer, Ross, for his input.

    Keith White
    #271814

    Thank you!

    Ross Moderator
    #271885
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 18 total)

The forum ‘Search & Filter Pro’ is closed to new topics and replies.