This shortcode allows you to display the post’s byline anywhere you want, not just below the post’s title, as most themes do.
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 byline can be customized making use of the optional attributes this shortcode can take.
A trivial shortcode to display a Molongui Byline looks like this:
That would display your current post’s byline, showing the name of the authors as a link to their archive page. Check below the what the output would be:
Byline with custom text
The shortcode below will display the names of the authors who wrote this article preceded by the “Written by” text:
Byline without links to archive author pages
You can also disable links to archive pages, so plain text will be displayed:
Credit authors of a mentioned post
It might also be interesting for you to credit the authors of a post you are mentioning:
Check out below all the available attributes you can use to customize your byline: