Found it:
global $post;
$author_id=$post->post_author;
the_author_meta('user_nicename', $author_id );
Related Posts:
- Change slug with custom field
- Display message depending on capability outside loop
- How to change the case of all post titles to “Title Case”
- Use category base slug in posts’ permalink
- Hook that get’s triggered when the author of a post is changed
- Dynamically add id to heading tags
- the_author() returns empty string
- Confirmation box when submitting post for review
- Ajax Load More Posts in Category Page
- Post slugs and images cannot have same name?
- How to show list of posts by author and category?
- Change the Slug of Post Type post to baseurl/post/%postname%
- How to add editor’s name to entry meta byline?
- Different permalink for posts and authors
- List latest posts in WP-Admin
- How to display posts by current user/author in a custom page template?
- How to control which category will be picked for the slug of a post?
- Restrict access to post if it is currently being edited
- Search posts by post author name
- Get the user type of an author
- Show the title of the latest post by author
- Create new category upon save based on post information
- Find most recent authors
- Show author post count in sidebar – Variable
- Filter posts by author and category simultaneously
- Strange switch_to_blog() issue
- POST from jQuery to PHP
- Get all posts by post_author
- How do I get the slug of a custom taxonomy category of a post?
- Limit number of posts a user can make per minute?
- $post object is null
- Authors in menu, template list post by author
- Function to show random posts from a category
- How to get posts by multiple post slugs? [duplicate]
- Define a name to the posts slug
- Bulk update post slugs through database
- Show info to author only
- Retrieving Author ID in wp-admin area
- Auto “expire” all of an authors posts on spcific date
- How to get the user meta data for a post?
- Display post category in foreach loop with category link
- WordPress Custom Fields (Checkboxes with multiple values)
- How to make number of blog posts a custom field?
- Whitelist Author of Private Post
- Automatically add date to the auto generation of post slug
- How to handle broken links created by permalink/slug changes?
- Visting slug for ‘post’ post type shows 404 not archive?
- Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?
- List authors with the last post title and order by last post date
- Display Notification Bar on Header on Certain Post Count
- How do I retrieve a users’ last 5 posts?
- obtain the author id given the post id
- Disable WordPress Archive Conflict Check
- Change all author links in Blog roll
- Can’t get full post title if there a spaces in title
- static landing page leading to author specific pages w/ “live” content
- Adding a user’s ID behind the tag ref link address
- WordPress custom post type with folder structure in slug
- How can I remove the first two words and shorten get_the_title()
- Is it possible to lock all new and existing WordPress posts to one specific author?
- my post slug gets really long and I can’t change it
- Edit the post title from the frontend
- How to get the ability to change the author of a post
- Only allow posts with a specific term to only be viewed by other authors with the same term in their post
- Show custom post with custom categories with specific slug
- How to limit author related post listing ?
- Get total post from an author
- Exclude a category of posts in author template
- post type slug vs page slug
- Dark Bar at the top of wordpress page can’t be seen?
- How to add PHP code snippet to all Post pages?
- How to display only one category in a custom post type?
- Limiting the amount of posts retrieved by the loop
- Hide content from Post Preview
- How to get the next and previous image title from attachment or gallery?
- Send email to admin with post author
- How To Use Custom Fields With .mp3 Links
- Restricting displayed posts to posts from only select authors
- Limit Post Creation Count by Author or Role
- How to 301 redirect from url with post id to permalink with post name (slug)?
- Word /blog/ in slug post, problems in CPT. Solutions?
- My post permalinks are always the same
- How can I output the slug of a comment author?
- Changing the Category for all posts of an Author
- List of authors posts minus very latest
- show latest authors blog post
- Display the current post author and his url in the post header
- How to limit the number of results for all query_posts on mysite
- Create a Page Template Which Displays All Posts by Current User
- Show a Category Specific Info Box
- Set the limit to allow author when make post!
- How to get all the terms of a post
- User driven content problems
- Older entries link within a category page
- Show last post of employee in his profile page
- Insert new post for each user infinite loop error
- Create post from form with image
- Notify Author of the post if admin deletes his post and perform some function
- Adding a content rating system
- How can I add Author’s phone number to wp profile and make it appear in wp-admin/edit.php columns