Applies only to the Pro version of the plugin, release 3.1.9 or higher.
Go Pro!

This shortcode allows you to display the name of the current post author if no attributes are provided or the name of a given author if you provide the author ID and author type.

On co-authored posts, only the name of the main author —first author on the list — is displayed. If you wish to display all the author names for a co-authored post, check out the molongui_byline shortcode.

It can be used anywhere within WordPress where shortcodes are supported. For most users, this will primarily be within the content of a WordPress post or page or the sidebar.


A trivial shortcode to display the author name looks like this:

Editor input


That would display the current post’s author(s) name as a text line. Nothing fancy but very useful in many cases. Check below the what the output would be:

Frontend output

James White


Check out below all the available attributes this shortcode can take:

Author ID whose name you want to be displayed.
Accepts integer as author ID.
Defaults to current post author ID.
Available since version 3.1.9.
The type of author to display.
Accepts Accepts "user" or "guest".
Available since version 3.1.9.
Whether to display a message in case of error retrieving the author name
Accepts Accepts "yes" or "no".
Defaults to yes.
Available since version 3.2.6.

Updated on March 28, 2021

Can't find what you're looking for?
How Can We Help?

Help Request Sent Successfully

OK, we'll get you an answer back shortly.