Forums › Forums › Search & Filter Pro › Using ACF select field for dropdown (label/value issue)
Tagged: acf, ACF select field, advanced custom fields, dropdown options, labels, meta Fields, meta value, options select, select field values, select value
- This topic has 72 replies, 5 voices, and was last updated 8 years, 11 months ago by
Anonymous.
-
Trevor(Private) July 8, 2016 at 9:34 am #50541
Is this a related issue:
https://support.searchandfilter.com/forums/topic/acf-labels-not-being-picked-up/
Anonymous(Private) July 8, 2016 at 9:46 am #50543Hi Trevor,
you could say it is related but it is not the same issue since he is using another type of field. My field situation is more simple, one could say. It is an ACF select field and I already see the values being displayed in my dropdown for the DB search but I want the labels to be shown, not the values. The funny thing is that it worked initially and just recently, after the update of your plugin it stopped working and now the values are displayed.
Is there any simple work-around or a setting that I can make? Or maybe you can find out what was changed so that it does not work anymore like before?Anonymous(Private) August 12, 2016 at 9:02 am #54381Hi Trevor,
it took we a really long time to get back to this because there were so many other things going on. Thanks for your support! Unfortunately the new version 2.2.0 does not resolve the issue!
I still see only the value as options but not the labels of the custom field (select field for country). The select field does not change no matter of I choose “Label” or “Value” in the options of the Post Meta field.Any idea what to do?
I am thinking about a jQuery workaround but love to find a clean solution that does not depend on JavaScript.Warm regards,
SebastianTrevor(Private) August 12, 2016 at 9:20 am #54383Does your field look something like this:
https://www.flickr.com/photos/142687274@N07/28634393170/in/dateposted-public/
Or did you create the list with both value AND label (such as
red: Red
)?Trevor(Private) August 12, 2016 at 9:50 am #54385Clearly our code needs improving/we must have broken something. We need to take a look again at the ACF and ACF Pro fields and do some work. It is some time since we last did that. Our dev, Ross, is away for about 10 days, but then I think we can spend some time focusing on what the issue is.
Anonymous(Private) August 12, 2016 at 10:03 am #54389Thanks for your honesty!
It would be great if this could work just out of the box.I think ACF is amazing and if you support such things, it will definitely be a big plus!
Otherwise I could build my own little things and work with GET variables to set up a simple database search but I love to have the option for later to do more complex searches once our database has more users. I trust your plugin can be a big helper in the future.For now I will fix it by applying a jQuery function that replaces underscores with a space and turns every lower case letter at the beginning of a word into a capital letter.
-
AuthorPosts