Giter Club home page Giter Club logo

Comments (7)

tcpriceweber avatar tcpriceweber commented on June 13, 2024

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.

fsfgsagerahgearge avatar fsfgsagerahgearge commented on June 13, 2024

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.

fsfgsagerahgearge avatar fsfgsagerahgearge commented on June 13, 2024

This is happening for ALL attachments! Even files, it's not only images!

from acf-to-rest-api.

rubycon avatar rubycon commented on June 13, 2024

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.

fsfgsagerahgearge avatar fsfgsagerahgearge commented on June 13, 2024

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

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.

LuLue7775 avatar LuLue7775 commented on June 13, 2024

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.

monckey100 avatar monckey100 commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.