Support

Account

Home Forums General Issues New post gather data with ajax, Edit post empty data ?

Solved

New post gather data with ajax, Edit post empty data ?

  • Take a lot of time to find answer about this and nothing found.

    I created own custom post type and also make a custom acf in code too, not using the acf admin.

    I create a select field.

    
    acf_add_local_field([
        'key'       => 'mpodds-league',
        'label'     => 'League Name',
        'name'      => 'league-name',
        'type'      => 'select',
        'ui'        => 1,
        'parent'    => 'mpodds-group'
    ]);

    Then i succesfully gather the data for this field using AJAX, append options to this field.
    Save the post.
    When i edit the post, it is empty. But when i see the db, it is saved. Why?

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

You must be logged in to reply to this topic.