0

I am using the json api for the api calls in my WordPress site. When I tried

http://example.com/api/get_category_posts&slug=catname

Then the default post category news can not be obtained.

And The response is: {"status":"error","error":"Not found."}

Do anybody have idea, what's wrong with this?

  • Please post some complete code so we can debug it maybe – Ahmed Fouad Oct 3 '16 at 22:00
0

Have you tried setting post_type to see if that fixes it?

I know documentation doesn't say it's required, but in the past I was only able to get it to work by passing the post type

https://wordpress.org/plugins/json-api/other_notes/

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.