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 maybeCommentedOct 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/

    Start asking to get answers

    Find the answer to your question by asking.

    Ask question

    Explore related questions

    See similar questions with these tags.