Coder Social home page Coder Social logo

Comments (6)

fabioquarantini avatar fabioquarantini commented on August 21, 2024 1

It works. Thanks

from acf-to-rest-api.

airesvsg avatar airesvsg commented on August 21, 2024

Hi @fabioquarantini,
when you edit the field, you are authenticated?
http://v2.wp-api.org/guide/authentication/
Thanks

from acf-to-rest-api.

fabioquarantini avatar fabioquarantini commented on August 21, 2024

Yes I'm using Basic Auth

from acf-to-rest-api.

airesvsg avatar airesvsg commented on August 21, 2024

OK, I'll test soon.

from acf-to-rest-api.

airesvsg avatar airesvsg commented on August 21, 2024

Hi @fabioquarantini,
please put this snippet in your functions.php

add_filter( 'acf/location/rule_match/comment', function(){
    return true;
} );

Thanks

from acf-to-rest-api.

 avatar commented on August 21, 2024

Hi, Could you help me in editing a notes field of acf. Here is the response which I have when called this http://test.localhost/wp-json/acf/v2/user/279 using the method GET

{
  "acf": {
"notes": [
      {
        "note": "test test",
        "user_id": "3",
        "col1": null,
        "user_name": "siteadmin",
        "col2": null,
        "created_at": "08/05/2016 09:08:55 am",
        "col3": null,
        "modified": "08/05/2016 09:09:39 am"
      },
      {
        "note": "test2 test2",
        "user_id": "3",
        "col1": null,
        "user_name": "siteadmin",
        "col2": null,
        "created_at": "08/05/2016 09:08:55 am",
        "col3": null,
        "modified": "08/05/2016 09:09:40 am"
      }
]

I would like to add another notes. I tried with PUT method and it says

{
  "code": "cant_update_item",
  "message": "Cannot update item",
  "data": {
    "status": 500
  }
}

I have tried via postman.Its would be great if you could help me on this.

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.