• Anonymous User 14488105

    (@anonymized-14488105)


    Hi,

    We are using vueJS and connecting to WordPress via the Rest API. However, the reordering we are doing in the backend isn’t reflected in the order received via the Rest API. Do we need to add additional parameters to the query urls?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Can you tell exactly what you’re doing and what you’re trying to achieve? So that we can help you with the issue.

    Let us know,

    Thanks,
    laranz.

    Thread Starter Anonymous User 14488105

    (@anonymized-14488105)

    Hi,

    we are making calls to the rest API to fetch the data we need, example below.

    However, if i change the order in the admin this doesn’t reflect the order the post are sent via the API. Are there additional parameters we need to add to the url?

    https://kotaagency.wpengine.com/wp-json/wp/v2/service?page=1

    Hi,

    You need to order it using menu_order, something like https://kotaagency.wpengine.com/wp-json/wp/v2/service?page=1&filter[orderby]=menu_order ( I didn’t check the system, but the concept is same, order it by menu_order )

    Let us know,

    Thanks,
    laranz.

    • This reply was modified 6 years, 11 months ago by Lawrence Joe.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not Working In Rest API’ is closed to new replies.