• David P.

    (@bifidusinactif)


    Hi,

    I have a custom post type livre and a custom taxonomy categorie-livre.
    I want to get posts livre having term romans-ado from the taxonomy categorie-livre in asc order.
    So, I try to query this like that : http://www.mywebsite.com/wp-json/wp/v2/livre?filter[categorie-livre]=romans-ados&filter[order]=ASC but posts are returned in the same order with http://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 !

    https://ww.wp.xz.cn/plugins/rest-api/

The topic ‘Order and custom post types’ is closed to new replies.