Wordpress API

Hi, I can’t write in the custom ACF field in Wordpress. I can write in the title, content but not ACF.

However I have ACF fields in my JSON, I have authorized it in WP.

Thanks for the help

What endpoint are you using exactly? @delcros_w

You can try the options below:

  1. Setting the name to [fields].tagline instead.

  2. Setting the name to fields and the value to an expression with the value {{ { “tagline”: “testing” } }}. Check the image below.

https://uclic.fr/wp-json/wp/v2/producthunt

[

{

"id": 10438,

"date": "2021-06-23T20:26:33",

"date_gmt": "2021-06-23T20:26:33",

"guid": {

"rendered": "https://uclic.fr/producthunt/inai-vox/",

"raw": "https://uclic.fr/producthunt/inai-vox/"

},

"modified": "2021-06-23T20:26:33",

"modified_gmt": "2021-06-23T20:26:33",

"password": "",

"slug": "inai-vox",

"status": "publish",

"type": "producthunt",

"link": "https://uclic.fr/producthunt/inai-vox/",

"title": {

"raw": "INAI Vox",

"rendered": "INAI Vox"

},

"content": {

"raw": "We are proud to introduce our new AI voice dubbed INAI Vox! ✔ INAI Vox can give you fluent voices in your language, without accent. ✔ Speak fluently in over 47 languages! ✔ One day free! Special for product hunt!",

"rendered": "<p>We are proud to introduce our new AI voice dubbed INAI Vox! ✔ INAI Vox can give you fluent voices in your language, without accent. ✔ Speak fluently in over 47 languages! ✔ One day free! Special for product hunt!</p> ",

"protected": false,

"block_version": 0

},

"template": "",

"permalink_template": "https://uclic.fr/producthunt/%pagename%/",

"generated_slug": "inai-vox",

"acf": {

"id": null,

"name": null,

"tagline": null,

"votes_count": null,

"day": null,

"featured": null,

"makers1": null,

"maker2": null

},

"yoast_head": "<!-- This site is optimized with the Yoast SEO Premium plugin v15.8.2 - https://yoast.com/wordpress/plugins/seo/ --> <title>INAI Vox - Agence Growth Marketing &amp; Stratégie Digitale</title> <!-- Avis aux administrateurs et administratrices : cette page n’affiche pas de méta description car elle n’en a pas. Vous pouvez donc soit l’ajouter spécifiquement pour cette page soit vous rendre dans vos réglages (SEO - Réglages SEO) pour configurer un modèle. --> <meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" /> <link rel="canonical" href="https://uclic.fr/producthunt/inai-vox/" /> <meta property="og:locale" content="fr_FR" /> <meta property="og:type" content="article" /> <meta property="og:title" content="INAI Vox - Agence Growth Marketing &amp; Stratégie Digitale" /> <meta property="og:description" content="We are proud to introduce our new AI voice dubbed INAI Vox! ✔ INAI Vox can give you fluent voices in your language, without accent. ✔ Speak fluently in over 47 languages! ✔ One day free! Special for product hunt!" /> <meta property="og:url" content="https://uclic.fr/producthunt/inai-vox/" /> <meta property="og:site_name" content="Agence Growth Marketing &amp; Stratégie Digitale" /> <meta name="twitter:card" content="summary_large_image" /> <script type="application/ld+json" class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://uclic.fr/#website","url":"https://uclic.fr/","name":"Agence Growth Marketing &amp; Strat\u00e9gie Digitale","description":"","potentialAction":[{"@type":"SearchAction","target":"https://uclic.fr/?s={search_term_string}","query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https://uclic.fr/producthunt/inai-vox/#webpage","url":"https://uclic.fr/producthunt/inai-vox/","name":"INAI Vox - Agence Growth Marketing &amp; Strat\u00e9gie Digitale","isPartOf":{"@id":"https://uclic.fr/#website"},"datePublished":"2021-06-23T20:26:33+00:00","dateModified":"2021-06-23T20:26:33+00:00","breadcrumb":{"@id":"https://uclic.fr/producthunt/inai-vox/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https://uclic.fr/producthunt/inai-vox/"]}]},{"@type":"BreadcrumbList","@id":"https://uclic.fr/producthunt/inai-vox/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"item":{"@type":"WebPage","@id":"https://uclic.fr/","url":"https://uclic.fr/","name":"Accueil"}},{"@type":"ListItem","position":2,"item":{"@type":"WebPage","@id":"https://uclic.fr/producthunt/inai-vox/","url":"https://uclic.fr/producthunt/inai-vox/","name":"INAI Vox"}}]}]}</script> <!-- / Yoast SEO Premium plugin. -->",

"_links": {

"self": [

{

"href": "https://uclic.fr/wp-json/wp/v2/producthunt/10438"

}

],

"collection": [

{

"href": "https://uclic.fr/wp-json/wp/v2/producthunt"

}

],

"about": [

{

"href": "https://uclic.fr/wp-json/wp/v2/types/producthunt"

}

],

"wp:attachment": [

{

"href": "https://uclic.fr/wp-json/wp/v2/media?parent=10438"

}

],

"wp:action-publish": [

{

"href": "https://uclic.fr/wp-json/wp/v2/producthunt/10438"

}

],

"wp:action-unfiltered-html": [

{

"href": "https://uclic.fr/wp-json/wp/v2/producthunt/10438"

}

],

"curies": [

{

"name": "wp",

"href": "https://api.w.org/{rel}",

"templated": true

}

]

}

}

]

@delcros_w I updated the post above.

Don’t work :confused: I want to post via the Wordprss API a value in ACF → Tagline

I haven’t had any luck either :frowning:

Hey @mishingo,

Welcome to the community :birthday:

Could you show us what you have tried?

I ended up just using the HTTP node and interacting with the API directly

Hello @delcros_w,
Did you get the solution of this topic? I have the same issue and I don’t get to filled acf fields.

Best,
Cesar