• Hi everyone, i have advance custom fields, and i’m trying to create a front end form. I am able to display the custom field on the front side, however i just can’t get the form to work.

    The basic idea im trying to implment is this: a custom post type for an item. The item can have one of 6 locations and there is a dropdown with each of th six locations in it.

    without having to go in and edit the whole page, an authorized user can load the page, and then click to select which location a specific item is at. There is also a list on a separate page of all the items that shows which location all items are at.

    So i have the location field created, with all six options, and it applies to tne custom post type, and displays the current location on the front post for that item, but i cannot seem to create the form.

Viewing 1 replies (of 1 total)
  • Thread Starter dpenny17

    (@dpenny17)

    <?php acf_form();$field_key = "field_5039a9973jsd1d";
    $value = array("Value1", "Value2", "Value3", "Value4", "Value5");
    update_field( $field_key, $value);
     ?>

    Is what i have in my custom post type’s single.php file in this file, it also has “Current location = [acf field=”location”]” to display the field value

    The Location custom field is a select field with Value1, Value2, Value3, Value4, Value5. You can choose one of these options on the backend, and if you do, on the front end page, those options are displayed. On the front end editor, picking a value and hitting update does nothing.

Viewing 1 replies (of 1 total)

The topic ‘[plugin : Advance Custom Fields] Front End Form Help’ is closed to new replies.