WordPress.org

Forums

JSON API
Custom post type shows full page or return error (2 posts)

  1. Flowrider
    Member
    Posted 1 year ago #

    When i request the following url i will not get a json object for the custom post type but the complete full html page is displayed.
    What's wrong here?

    http://www.website.com/api/get_recent_posts/?post_type=news

    When i request the following url where post with id 1354 is a custom post type "news" i receive an error "{"status":"error","error":"Not found."}"

    http://www.website.com/api/get_post/?post_id=1354

    Can someone help?
    Thanks in advance

  2. drewcovi
    Member
    Posted 1 year ago #

    With all due respects: I don't quite understand how your "review" justifies a four out of five stars. Sounds like you meant to post this in the support forums.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JSON API
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.