Support

Account

Home Forums Add-ons Options Page Unable to dynamically populate select field

Solving

Unable to dynamically populate select field

  • I am using ACF 3.5.6.3 and using this article (http://www.advancedcustomfields.com/resources/tutorials/dynamically-populate-a-select-fields-choices/) as is to populate select list options using textarea content (in options page), but select list does not populate with dynamic values.

    -I have a Options page named ‘Global’ with a field called ‘my_select_values’ textarea with following information:
    Red
    Green
    Blue
    -I have created a field group called ‘staff-fields’ and it has a field named ‘color’ as select field.
    -I have put the code from this link (http://www.advancedcustomfields.com/resources/tutorials/dynamically-populate-a-select-fields-choices/) as is on functions.php
    -I have attached ‘staff-fields’ to staff custom post type, but under field color I do not see Red, Green & Blue in the dropdown list.

    Not sure what am I missing? Any help is highly appreciated.

    Thanks,

    • Elliot

    • August 13, 2013 at 2:49 pm

    Hi @shuklasanjeev

    At this stage, I am unsure why it ‘isn’t working’, but to do so, we will need to debug the issue.

    Can you debug the functions and find out if they are running?

    Also, can you post the code you are using?

    Thanks
    E

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.