Comments (12)
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.
Yes, will do.
Thanks
from acf-to-wp-rest-api.
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.
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.
Try it: /wp-json/wp/v2/projects?filter[orderby]=client
Thanks
from acf-to-wp-rest-api.
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.
Hi,
Please watch my test.
https://www.youtube.com/watch?v=8oZbtlWz6f4
Thanks
from acf-to-wp-rest-api.
you need to set an order.
from acf-to-wp-rest-api.
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.
Hi @earnest-dev,
Can you send me the database dump?
[email protected]
Thanks
from acf-to-wp-rest-api.
you need to set an order.
Cool, ~ is this filter[orderby] support ACF V3?
from acf-to-wp-rest-api.
Hi,
Please watch my test.
https://www.youtube.com/watch?v=8oZbtlWz6f4Thanks
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)
- Questions about Attachment acf data in Gallery Field HOT 5
- Rename from 'acf' in response HOT 2
- Field Not Updating
- Retrieving ACFs from custom Option Pages HOT 2
- v3 orderby issue
- Getting post/object by field HOT 1
- Full Guide on Posting and Getting ACF data HOT 1
- Will this support post? HOT 10
- Shortcodes HOT 3
- Getting ACF data for a set of posts? HOT 1
- ACF not showing in Custom Post type HOT 13
- Filter by ACF Field Value HOT 10
- All request endpoints return null HOT 3
- Request to page HOT 4
- Including Custom Post Types & Corresponding ACF Data HOT 2
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-wp-rest-api.