This shortcode allows you to display the slug of the current post author(s) if no attributes are provided or the slug 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.
A trivial shortcode to display the author slug looks like this:
That would display the current post’s author slug as a text line. Nothing fancy but very useful in many cases. Check below the what the output would be:
Check out below all the available attributes this shortcode can take: