Comments (6)
@danimalweb
We ended up exporting the fields to a JSON file, deleted the ACF declarations, changed the root id to another random id in the JSON file, and then imported it again. Then it "just worked". But a cumbersome workaround. So will leave this open. But the example URL's in this issue will now work correctly, so have removed them.
from acf-to-rest-api.
Just gonna note that adding fields to non-flexible content fields seems to work. Just added fields to an options page with a plain hierarchy, and that worked just fine. Will try to investigate a bit more. But a bit hard when I don't know how everything is connected among pages and meta data.
from acf-to-rest-api.
I am having a similar issue. I am not using Flexible fields.
from acf-to-rest-api.
I think I am experiencing the same issue, though mine is with a custom field group that was added to users.
Whilst the values on these fields appears to be persisted (from some business logic when a user registers), none of the values make it into the JSON response until I go in and edit them manually (or re-save the account) from within WP Admin.
I've included two screenshots, one which shows how many lines present in the JSON response before re-saving the account (175 lines) and the second one after saving (178 lines).
Strangely, in the ACF group, one of the fields does come through every time - it only seems to be a recently added fields that are not appearing. Also other ACF groups work perfectly all the time.
I would love to help track down this issue and work on a fix - as it is really affecting the operation of my site (as I need to go in and re-save every new user!)
from acf-to-rest-api.
Hi @airesvsg Any idea about this - it's causing me huge issues with using this plugin as some fields are missing on the API, even though there are values set on the user object!
from acf-to-rest-api.
Was doing some further investigation today... It seems that all ACF fields are being returned if I use the WooCommerce API
... e.g. https://DOMAIN/wp-json/wc/v3/customers/600
is correctly displaying the field within the meta_data
section of the response.
from acf-to-rest-api.
Related Issues (20)
- How can I populate acf relationships to resful api? HOT 1
- Start Up Guide
- Couldn't get multiple results in the same request HOT 1
- ACF to Rest Api does not work with acf-fields-in-custom-table
- ACF now has native support for the WP REST API
- Issue with WPML translated oprions HOT 1
- Filter products categories by ACF field
- Issue with ACF 5.12 HOT 7
- ACF only showing image ID HOT 7
- Cannot update terms
- Problem with creating a new WooCommerce product with ACF fields HOT 1
- Problem updating ACF relationship fields
- acf return false
- Edit Custom Field Group select options via Rest API
- i can't update users acf HOT 3
- Get data not being updated
- Slow response time while using with ACF Pro Plugin.
- Filtering posts by any property HOT 1
- Post object taxonomy not showing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acf-to-rest-api.