Support

Account

Home Forums General Issues Select field Reply To: Select field

  • Hi @Deelite

    ACF offers many functions to interact with your data.
    Normally, you would load the selected value like this:

    
    $value = get_field('field_name');
    

    If you want to actually ‘create’ a select input, then you can use a function called create_field like so:

    
    $field = get_field_object('pickregion');
    create_field($field);
    

    The code you posted (the_content) has nothing to do with creating a select field. May I ask where you found this code, and why you posted it above?

    Thanks
    E