Support

Account

Home Forums Backend Issues (wp-admin) JSON REST API and ACF? Reply To: JSON REST API and ACF?

  • Hello,

    this Live Demo URL is not working now. can you please send me some other example for the Repeater field.

    I want to insert new post using WP Rest API and that post is also having some repeater fields value. so how can I add that?

    I have tried with below code

    ‘body’ => array(
    ‘title’ => $_POST[‘title’],
    ‘excerpt’ => $_POST[‘excerpt’],
    ‘status’ => ‘publish’,
    ‘acf’ => array(
    ’email_id’ => $_POST[’email’],
    ‘phone_number’ => $_POST[‘phone’],
    ‘links’ => array(
    ‘https://www.facebook.com/’,
    ‘https://twitter.com/’,
    ‘https://www.instagram.com/’,
    )
    )
    )

    But it is sending error like “acf[links][0] is not of type object.”