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.
The trivial shortcode to display a Molongui Post Byline looks like this:
Editor input
Frontend output
As you can see, you get current post byline, showing the name of the author as a link to their archive page.
Examples
Post Byline with Custom Text
The shortcode below will display the names of the authors who wrote the article with ID=1 preceded by the “Written by” text:
Editor input
Frontend output
Post Byline Without Links to Author Pages
You can also disable links to author pages, so plain text is displayed:
Editor input
Frontend output
Credit Authors of a Mentioned Post
It might also be interesting for you to credit the authors of a post you are mentioning:
Editor input
Frontend output
Attributes
Check out below all the available attributes this shortcode can take: