Molongui » Help » Molongui Authorship Docs » Shortcodes » molongui_author_name

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.


The trivial shortcode would be:

Editor input


That would display the current post’s author name as text. Nothing fancy but very useful in many cases. Check below what the output would look like:

Frontend output

Colleen Vance


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

Author ID whose data you want to get.
Accepts integer as author ID.
Defaults to current post author ID.
Available since version 1.0.0.

The type of author.
Accepts Accepts “user” or “guest”.
Available since version 1.0.0.

Whether to display a message in case of error.
Accepts Accepts “yes” or “no”.
Defaults to yes.
Available since version 1.0.0.
Updated on February 26, 2022

Did not find a solution? We are here to help you succeed.
Open a support ticket