• Hey,

    If i make the request

    /api/get_posts/?post_type=social-club

    I get a correct response

    {
    status: "ok",
    count: 1,
    count_total: 1,
    pages: 1,
    posts: [
    {
    id: 81029,[etc]

    However if I query that ID directly, I get error, not found.

    /api/get_post/?post_id=81029
    or
    /get_post/?post_id=81029?post_type=social-club

    both return

    {
    status: "error",
    error: "Not found."
    }

    Any idea why this is?

The topic ‘[Plugin: JSON API] Post retrieved when querying post type but not directly’ is closed to new replies.