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.”
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.