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”
- Where is the old post permalink slug stored?
- 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
- Custom Post Types, slug, archive and SEO plugins
- Prevent Authors from viewing each others Posts
- Confirmation box when submitting post for review
- Display Random Author with Details in Sidebar
- Ajax Load More Posts in Category Page
- How to automatically generate a unique random slug
- Post slugs and images cannot have same name?
- How to show list of posts by author and category?
- WordPress: How to get the current logged in author page URL?
- 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
- Publish pending article from front end with a button?
- List latest posts in WP-Admin
- Update all posts automatically when using post_meta
- How to display posts by current user/author in a custom page template?
- Restrict users from editing post based on the age of the post
- How to control which category will be picked for the slug of a post?
- Query posts distinct authors
- Restrict access to post if it is currently being edited
- Restrict the Number of Posts an Author can Publish (over time)?
- Determining Slug Before and After Edit
- Search posts by post author name
- Get the user type of an author
- Getting an alphabetic post list with two letters onclick on letter
- 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
- which action to hook to in order to perform post-publish action
- Get current users post URL?
- Get the author of the latest revision
- Filter posts by author and category simultaneously
- Custom Post Type & Author not associating, user post count is 0, api doesn’t return author in post objects
- Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?
- How to update all post at once?
- Strange switch_to_blog() issue
- Post author is changed to admin after his post is modified by admin
- POST from jQuery to PHP
- Search widget breaks when using multiple loops?
- Get all posts by post_author
- generate unique slug while inserting post
- How do I get the slug of a custom taxonomy category of a post?
- How can I control multiple editing of wordpress posts?
- Multiple authors for single post without plugin
- Limit number of posts a user can make per minute?
- $post object is null
- Authors in menu, template list post by author
- Show the author’s count of total amount of posts assign to a custom taxonomy term
- Author must complete profile info before they can publish a post?
- Advanced Custom Fields – Storing array value for further usage
- Function to show random posts from a category
- WP rest api returns 404 only when author param is used
- How can I list random authors from current post category?
- Get_the_author doesn’t return author name
- How to get posts by multiple post slugs? [duplicate]
- Define a name to the posts slug
- str_replace the_title(); blues
- Bulk update post slugs through database
- Accessing post->ID outside of the loop for listing child pages
- how to set beforsend option in wordpress ajax methods
- How can I show wordpress posts based on author?
- 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?
- Limit posts per author role (excluding admin) in home page
- Guest Author – How to display posts on /author/ archive page
- Display post category in foreach loop with category link
- How can I show many posts an author has per week?
- How to give capability (publish contributors posts) to author role?
- WordPress Custom Fields (Checkboxes with multiple values)
- Why WP_Query(‘showposts=5’) shows only 1 post?
- Most liked page not displaying posts
- How to make number of blog posts a custom field?
- Whitelist Author of Private Post
- Show posts by a custom post author
- How to have posts have a parent in permalink like site.com/blog/postname
- Getting the current author (it has changed) of a post, not the original author
- 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?
- how do i add posts-page slug before posts slug in permalinks
- Creating a post from data returned from HTML form
- Showing author page if user has no post
- List authors with the last post title and order by last post date
- Redirect to another page using contact form 7? [closed]
- Display post category in foreach loop
- Display Notification Bar on Header on Certain Post Count
- How to get a post’s content? [closed]
- How do I retrieve a users’ last 5 posts?