WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
Request returns HTML and not JSON (1 post)

  1. icecappacino
    Member
    Posted 1 year ago #

    Hello,

    I'm using Custom Post UI Plugin to create custom posts and taxonomies.

    when i try to retrieve posts using

    http://localhost/wordpress/api/core/?json=get_category_posts&slug=questions&post_type=questions

    I get the results in html and not returned as json

    if i use

    http://localhost/wordpress/api/core/?json=get_category_posts&slug=questions
    I get the json response but no posts

    Am I suppose to implement my own controller here? or doesn't your core already cater for this?

    http://wordpress.org/extend/plugins/json-api/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic