WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tareiking
    Member
    Posted 7 months 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 6 months ago #

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

  3. tareiking
    Member
    Posted 6 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.