Git Product home page Git Product logo

Comments (12)

earnest-dev avatar earnest-dev commented on July 28, 2024 1

Thanks again for the quick response.

Using the following URL:
http://localhost:8888/earnest/wp-json/wp/v2/projects?filter[orderby]=client&filter[order]=asc

Changing "asc" for "desc" reverses the order of the projects, however neither order is alphabetical by client, they are just sorted by date.

Many thanks.

from acf-to-wp-rest-api.

earnest-dev avatar earnest-dev commented on July 28, 2024 1

Yes, will do.

Thanks

from acf-to-wp-rest-api.

airesvsg avatar airesvsg commented on July 28, 2024

Hi @earnest-dev,
please update your plugin to new version.
https://github.com/airesvsg/acf-to-rest-api

Thanks

from acf-to-wp-rest-api.

earnest-dev avatar earnest-dev commented on July 28, 2024

Hi,

Thanks for getting back to me so quickly. I have updated the plugin as well as all other plugins, but still not seeing the desired result.

Is there any code I need to add to functions.php or anywhere else?

Thanks.

from acf-to-wp-rest-api.

airesvsg avatar airesvsg commented on July 28, 2024

Try it: /wp-json/wp/v2/projects?filter[orderby]=client

Thanks

from acf-to-wp-rest-api.

earnest-dev avatar earnest-dev commented on July 28, 2024

Hi,

Thanks for the response, unfortunately I am still not seeing the desired result.
Is there anything else I can try?

Thanks.

from acf-to-wp-rest-api.

airesvsg avatar airesvsg commented on July 28, 2024

Hi,
Please watch my test.
https://www.youtube.com/watch?v=8oZbtlWz6f4

Thanks

from acf-to-wp-rest-api.

airesvsg avatar airesvsg commented on July 28, 2024

you need to set an order.

from acf-to-wp-rest-api.

earnest-dev avatar earnest-dev commented on July 28, 2024

Hi,

I'm using this URL, which has a filter filter[order]=asc on the end:

.../wp-json/wp/v2/projects?filter[orderby]=client&filter[order]=asc

But it is still not ordering by client as I was hoping for.

Is there anything else I can try? Do I need to add anything to my functions.php file?

I appreciate the help.
Thanks.

from acf-to-wp-rest-api.

airesvsg avatar airesvsg commented on July 28, 2024

Hi @earnest-dev,
Can you send me the database dump?
[email protected]

Thanks

from acf-to-wp-rest-api.

spharrychuang avatar spharrychuang commented on July 28, 2024

you need to set an order.

Cool, ~ is this filter[orderby] support ACF V3?

from acf-to-wp-rest-api.

brunodeangelis avatar brunodeangelis commented on July 28, 2024

Hi,
Please watch my test.
https://www.youtube.com/watch?v=8oZbtlWz6f4

Thanks

Unfortunately this is not working for me. I'm using version 3.3.1

Any help is greatly appreciated!

from acf-to-wp-rest-api.

Related Issues (16)

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.