By using Wordpress REST Api




What I want?

I just want to display [{"id":13}, Means, I want to limit it to only 1 array Using REST API. Any one have solution on this?


The docs show that you can do paging with page and per_page, so looks like you should be able to set per_page to 1 and leave page unset to get a single result. i.e.:


Does that help?

  • Gosh! Thanks! Yes it does help. Thank You @mozboz
    – Muhaza
    Jul 6 '20 at 0:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.