Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieving Authors Name #22

Closed
jaylaw81 opened this issue Oct 9, 2015 · 2 comments
Closed

Retrieving Authors Name #22

jaylaw81 opened this issue Oct 9, 2015 · 2 comments

Comments

@jaylaw81
Copy link

jaylaw81 commented Oct 9, 2015

The getPosts / getPost calls, only return the author ID. Is it possible to have those mapped to return the actual author display name

@scottgonzalez
Copy link
Owner

You'll need to go through the wp.getUser API to get the display name. That functionality hasn't been implemented yet, but you can go through the generic client.authenticatedCall() for now. There's a PR that adds the user methods (#11), but it was waiting for an update. I'll work on getting that reviewed and merged.

@scottgonzalez
Copy link
Owner

If you need help getting the wp.getUser call to work before #11 is merged, just let me know and I'll put together some sample code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants