WordPress.org

Forums

JSON API
How to retrieve just the authors name with `include` query string (3 posts)

  1. Tarei King
    Member
    Posted 2 years ago #

    Appending '?include=author' to an endpoint shows the 'author' object, but I am just wanting to retrieve the author name from that object.

    {
    0: {
    id: 15,
    author: {
    id: 1,
    slug: "admin",
    name: "admin",
    first_name: "",
    last_name: "",
    nickname: "admin",
    url: "",
    description: ""
    }
    },
    status: "ok"
    }

    Does anyone know how to:
    1. Use the ?include arg to get just the author -> name property?

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

  2. khawar.shzd
    Member
    Posted 2 years ago #

    @tareiking, I am also having the same issue. Did you get any solution?

  3. Tarei King
    Member
    Posted 2 years ago #

    Unfortunately I put that particularly project on hold - head over to http://wordpress.org/plugins/json-rest-api/ and see if that cant help you out.

    The above plugin has great documentation and is much more actively developed.

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.