This shortcode allows you to display the biography 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.
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.
Example
The trivial shortcode would be:
Editor input
That would display the current post’s author bio as text. Nothing fancy but very useful in many cases. Check below what the output would look like:
Frontend output
Should you like to retrieve the bio for a given author, let’s say a guest author whose ID is 123, you should use the shortcode like this:
Editor input
And what if you’d like to retrieve the short bio for that author? Then you should use the shortcode like this:
Editor input
Attributes
Check out below all the available attributes this shortcode can take:
You could also retrieve author bios using the molongui_author_meta shortcode providing either the “short_bio” or “long_bio” value to the “key” attribute.