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?

1
  • Please post some complete code so we can debug it maybe Commented Oct 3, 2016 at 22:00

1 Answer 1

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 and acknowledge you have read our privacy policy.

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