Order and custom post types
-
Hi,
I have a custom post type
livreand a custom taxonomycategorie-livre.
I want to get postslivrehaving termromans-adofrom the taxonomycategorie-livreinascorder.
So, I try to query this like that :http://www.mywebsite.com/wp-json/wp/v2/livre?filter[categorie-livre]=romans-ados&filter[order]=ASCbut posts are returned in the same order withhttp://www.mywebsite.com/wp-json/wp/v2/livre?filter[categorie-livre]=romans-ados&filter[order]=DESC.If I query with a search like this
http://www.mywebsite.com/wp-json/wp/v2/livre?filter[s]=toto&filter[order]=ASC, order is OK.Is that a bug I should report or is there something I have to declare in my custom post type or custom taxonomy to make it work ?
Thanks !
The topic ‘Order and custom post types’ is closed to new replies.