Comments (7)
Upgrading ACF above 5.10.2 broke more than that for us. the v2 API started returning a bunch less data.
from acf-to-rest-api.
It's not showing the media ID, that would be helpful because you could then reconstruct the path. It is showing the attachment ID. Not even the media ID.
from acf-to-rest-api.
This is happening for ALL attachments! Even files, it's not only images!
from acf-to-rest-api.
Since the last releases ACF default to its light
REST API format. You can switch back to the standard
format with an URL param (acf_format=standard
) or globally with a WordPress filter :
add_filter('acf/settings/rest_api_format', function () { return 'standard'; });
cf. https://www.advancedcustomfields.com/resources/wp-rest-api-integration/#controlling-output-format
from acf-to-rest-api.
Since the last releases ACF default to its
light
REST API format. You can switch back to thestandard
format with an URL param (acf_format=standard
) or globally with a WordPress filter :add_filter('acf/settings/rest_api_format', function () { return 'standard'; });
cf. https://www.advancedcustomfields.com/resources/wp-rest-api-integration/#controlling-output-format
Frames this as an intended feature.
Within wordpress however I get the option to select the return value, one of which is URL. Setting this does not return the URL however, it just returns the attachment ID no matter what.
This breaks so many pieces of software relying on return types.
from acf-to-rest-api.
Does this still work?
In my case, it's not even working appending ?acf_format=standard at the end of request.
from acf-to-rest-api.
Does this still work? In my case, it's not even working appending ?acf_format=standard at the end of request.
I literally was only able to get this to work by rolling back to an older version...
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
- Value get's updated, but new keys are not added in JSON response HOT 6
- 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
- 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.