Just to add when I use the following to list posts: https://www.MYSITEURL.com/wp-json/acf/v3/posts
I get the following:
[
{
"id": 35980,
"acf": []
},
{
"id": 33675,
"acf": []
},
{
"id": 33220,
"acf": []
},
{
"id": 32808,
"acf": []
},
{
"id": 32006,
"acf": []
},
{
"id": 31846,
"acf": []
},
{
"id": 30240,
"acf": []
},
{
"id": 28420,
"acf": []
},
{
"id": 27843,
"acf": []
},
{
"id": 27531,
"acf": []
}
]
I am sure I have not configured something so some guidance might get me up and running on this one. Cheer, C
Hi @airesvsg
I have installed your plugin in the hope to use it to fetch ACF data and set it accordingly.
I am can confirm the plugin is activated as I get the end points / routes when I use the https://www.MYSITEURL.com/wp-json/acf/v3/ URL.
However when I go to try and list all data for my custom post type “agents” I get a no such route. I used your endpoint from the endpoints guide /wp-json/acf/v3/{post-type}
So for me this was https://www.MYSITEURL.com/wp-json/acf/v3/agents/ and I get a response:
{
"code": "rest_no_route",
"message": "No route was found matching the URL and request method",
"data": {
"status": 404
}
}
This is the same for all my custom post_types.
Did I miss something basic in the installation? Do I need to add something to my functions.php or add filters in there?
Any help would be great as if the plugin was to work it would be a real benefit.
Cheers,
Col
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.