Forums Forums Search & Filter Pro ACF Field Filter not displaying choices

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #182768

    Hi

    I’ve enabled S&F Pro on https://qep.vatestserver.com/groups/ which is mostly working as we would like.

    The main issue I’ve experienced is the Location and Tags filters single display the ACF Group ID instead of list the choices within the field, e.g. the Location ACF Group contains the choices:

    eastern : Eastern
    east-midlands : East Midlands
    london : London
    north-east : North East
    north-west : North West
    scotland : Scotland
    south-east : South East
    south-west : South West
    wales : Wales
    west-midlands : West Midlands
    yorkshire-humber : Yorkshire & The Humber
    outside-uk : Outside of the UK

    On the ‘Post Meta: _loaction’ for the ‘Search Form UI’ settings I’ve selected the ‘Is ACF Field?’ checkbox. Also the ‘Get Options’ is set to ‘Automatically’.

    I would be grateful if you could please advise me on when else I need to do for the choices to correctly appear for both Location and Tags ACF fields when output in my S&F Pro search please.

    Kind regards
    Luek

    Trevor
    #182771

    The big ‘gotcha’ with ACF ….

    With ACF, note that it makes 3 meta keys per field, like this:

    #1 _location
    #2 field_5a16902ae5c07
    #3 location

    You need to use key #3, without the underscore at the start of the key name.

    Anonymous
    #184576

    Many thanks Trevor.

    This fixed sorted it.

Viewing 3 posts - 1 through 3 (of 3 total)