如何在帖子创建期间通过Axios post请求填充ACF字段?



如何在通过Axios创建帖子时填充ACF字段?使用这种方法,我可以创建具有正确标题和正文的帖子,但不能发送ACF字段。(我已经安装了ACF Rest Api插件)

createPost(){
axios({
method: 'post',
url: 'https://webisonstage.cloud/vuedeal/wp-json/wp/v2/prodotti',
data: {
title: this.form.title,
content: this.form.message,
acf:{
prod_prezzo: this.form.prezzo
}
},
headers: {
"Authorization" : `Bearer ${this.$store.state.token}`
}
});

}

我解决了更改标签";fields"…

最新更新