Forums › Forums › Search & Filter Pro › ACF Labels & Options Sync not working
Tagged: acf, advanced custom fields, options
- This topic has 7 replies, 3 voices, and was last updated 5 years, 11 months ago by Trevor.
-
Anonymous(Private) April 30, 2017 at 8:04 pm #105669
Hello.
In ACF I have a custom field with the name: key_signature
That field has the following choices that are selected with a dropdown in ACF:
A
A#/Bb
Ab
B
Bb
C
C#/Dd
DIt is set to return a value.
In Search & Filter Pro, I have Post Meta: key_signature
Input Type is Dropdown
Get Options: Automatically
Is ACF Field: checked.
The search form is in the theme with: <?php echo do_shortcode(‘[searchandfilter id=”#####”]’); ?>The options are not syncing with ACF. When I click the dropdown, there are no options.
Trevor(Private) January 15, 2019 at 9:21 am #198930Note a ‘gotcha’ with ACF ….
… it makes 3 meta keys per field, like this:
#1
_suburb
#2field_5c1e1ebf30ae7
#3suberb
You need to use key #3, without the underscore at the start of the key name. If you choose #1 by mistake, in the field choices you will see the name of #2. For range sliders, it is not obvious when this mistake has been made.
Anonymous(Private) January 15, 2019 at 6:45 pm #199005thanks, but that wasn’t it, but yes, I already noticed that 🙂 Problem was, they weren’t appearing AT ALL for me to even select. Perhaps there’s a long sync delay or something, and I was trying ot Rebuild Cache and several other things, but finally they ended up appearing in dropdown. Not sure why, but they did.
Anonymous(Private) January 15, 2019 at 6:58 pm #199011It is but I don’t know the problem in the first place…maybe timing or cache? I imported an older .json file and ended up copying the php code and putting in functions.php directly, so don’t know if that fixed it or the cache or what…was just frustrating cuz the fields didn’t appear for long time and I tried many things, so not actually sure what worked or what I did wrong in first place.
-
AuthorPosts