svalerie
Member
Posted 1 year ago #
I've been going about this for a while, and re-reading the documentation, but can't seem to crack it.
Trying to retrieve posts and order them by post titles, but the order_by argument doesn't seem to have an effect (at least not how I'm doing it)
http://example.com/?json=get_category_posts&category_id=4&order_by=title
Any hints, tips very appreciated. (btw - order=asc, working like a charm, but have been trying other values for order_by and no joy so far).
Many thanks
http://wordpress.org/extend/plugins/json-api/
sparklette
Member
Posted 1 year ago #
I have the exact problem too. Trying to sort posts by title to no avail. Any solution would be greatly appreciated. Thanks.
theseanz
Member
Posted 1 year ago #
Just wanted to chime in and say I am having this issue, also. I'm about to dig into the code, but I'd rather not as my PHP skills are intermediate at best.
dougestey
Member
Posted 8 months ago #
I'm also having this issue.
rbarona
Member
Posted 8 months ago #
Hi!
I have the same problem, but I find the solution! ;)
The argument "order_by" is without "_". It works "orderby"
http://example.com/api/get_recent_posts/?dev=1&order=desc&orderby=title
Tried on your website and tell me if is working ;)