2016-04-12 11 views
1

Gönderileri yakalamaya ve bunları tarihe göre azalan sırada sipariş etmeye çalışıyorum. https://github.com/WP-API/WP-APIWP-API mesajları al ve onları azalan bir siparişle sipariş ver

Denedim:

http://url.com/json/wp-json/wp/v2/posts?filter[order]=DESC

http://url.com/json/wp-json/wp/v2/posts?order=desc

İkisinde çalışmak

Bu API bahsediyorum.

Ama bu, örneğin, çalışıyor:

http://url.com/json/wp-json/wp/v2/posts?filter[cat]=3

fikrin var mı?

+0

Emin misiniz, işe yaramıyor? Http: //demo.wp-api.org/wp-json/wp/v2/posts? Order = asc' ve 'http://demo.wp-api.org/wp-json/wp 'yi denedim./v2/posts? order = desc' - iyi çalışıyor gibi görünüyor. Dokümanlarına göre çalışmalıdır: http://v2.wp-api.org/reference/posts/. –

cevap

İlgili konular