Fill ACF with Plugin REST API #416
Unanswered
xarliebrown
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to fill an ACF using the plugin. What I'm doing wrong? Thanks!!
acf_fields = {
'GroupName':{
"customfield": item["field"],
}
post_data = {
"title": item["name"],
"content": item["description"],
"status": "publish",
"acf_data": acf_fields
}
response = requests.post(WORDPRESS_URL, json=post_data, auth=HTTPBasicAuth(USERNAME, APPLICATION_PASSWORD))
Beta Was this translation helpful? Give feedback.
All reactions