0

I am trying to make an android app for a wordpress website. But unable to get the JSON of post. I tried with two pluginsThese are the plugins of the website for JSON

  1. WP Rest API
  2. JSON API

WP Rest API is returning this

[]

and JSON API is returning this

    {
  "status": "ok",
  "count": 0,
  "pages": 0,
  "category": {
    "id": 21,
    "slug": "maths",
    "title": "Maths",
    "description": "",
    "parent": 13,
    "post_count": 3
  },
  "posts": []
}

According to me this problem is due to any other plugin. But I am unable to find the solution

API using for JSON 1. with JSON API plugin I am using this link http://iitianlogic.com/custom/get_category_posts/ and posting id=4

1
  • Can you update the question with the code you are using to request the JSON? Commented Feb 10, 2017 at 2:36

1 Answer 1

1

The request url is not correct, Please try the below url which showing posts under uncategorized category http://iitianlogic.com/api/core/get_category_posts/?slug=uncategorized

Hope this will work

Sign up to request clarification or add additional context in comments.

1 Comment

Also you can try like this : iitianlogic.com/api/core/get_category_posts/?category_id=4 Please add post type if you have that [ &post_type=<your post type> ]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.