Displaying the author box anywhere

This article applies only to the Premium version of the plugin, release 1.2.2 or higher.
Get premium version

Not enough showing the author box on a post or page? Would you like to be able to display the author box elsewhere on your site? May be on your sidebar? Or in the footer of the page as a widget? The Premium version of Molongui Authorship allows you to display an author box anywhere you like thanks to the use of shortcodes.

A trivial shortcode to display a Molongui author box looks like this:

Editor input

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam hendrerit ante ac libero imperdiet blandit.
[molongui_author_box]
Phasellus venenatis neque non leo imperdiet pellentesque. Suspendisse varius magna velit, in blandit justo pharetra vel. Vivamus vitae arcu tortor.

Using this trivial shortcode, an author box will be rendered showing the information of the author of the page being displayed. The author box will be styled using the global configuration you have set on the plugin settings page.

If you want to customize how a particular author box will look like, you can use the shortcode with additional attributes to override the global plugin settings. All styling settings can be overridden.

You can even override which author to display! If no author ID given, the plugin will show the information of the page’s author. However, if you specify an author ID, Molongui Authorship will show all the information of that author.

The author box will get adapted to any given space, so don’t bother about your sidebar being too narrow to place it. Molongui Authorship has been coded to display a responsive author box, no matter the available space.

Examples

The shortcode mentioned above accepts several attributes that modify how the author box is displayed (see section Attributes at the end of this article to know all the available attributes and its usage). Check out these live examples for tips and ideas:

Displaying current post author box with settings set at plugin page

Editor input

[molongui_author_box]

Frontend output

Journalist at Daily Herald | | + posts

This is the bio of Claire Williams, a regular writer on this blog. Here you can write here anything you like even a shortcode! Text styles can also be customized to your needs and likes. On small screens there is no difference between "default" and "default RTL" layouts.

Customized background color

Editor input

[molongui_author_box box_background="#c3996b"]

Frontend output

Journalist at Daily Herald | | + posts

This is the bio of Claire Williams, a regular writer on this blog. Here you can write here anything you like even a shortcode! Text styles can also be customized to your needs and likes. On small screens there is no difference between "default" and "default RTL" layouts.

Tabbed layout without shadow and brown author name

Editor input

[molongui_author_box layout="tabbed" box_shadow="none" box_border="thick" name_color="#8B5132"]

Frontend output

Journalist at Daily Herald |

This is the bio of Claire Williams, a regular writer on this blog. Here you can write here anything you like even a shortcode! Text styles can also be customized to your needs and likes. On small screens there is no difference between "default" and "default RTL" layouts.

Given guest author box with circled profile image

Editor input

[molongui_author_box author="303" guest="yes" img_style="circled"]

Frontend output

Entrepreneur | + posts

This is the bio of James White, a guest author in my blog. You can write here anything you like even a shortcode! See the form below? It is a shortcode from another plugin :-)
 

Attributes

Check out below all the available attributes you can use to fully customize your author box:

authoroptional
The ID of the author to display.
Accepts integer as post ID.
Defaults to current post author ID.
Available since version 1.2.5.
guestoptional
Whether the author to display is a guest author.
Accepts “yes” or “no”.
Defaults to no.
Available since version 1.2.5.
layoutoptional
The template to be used to render the author box.
Accepts “default”, “default-rtl”, “tabbed”, “ribbon” or “ribbon-rtl”.
Available since version 1.2.5.
box_widthoptional
Amount of space (in %) the author box can take.
Accepts “10”, “20”, “30”, “40”, “50”, “60”, “70”, “80”, “90” or “100”.
Available since version 1.3.5.
box_marginoptional
Space (in px) to add above and below the author box.
Accepts “0”, “10”, “20”, “30”, “40”, “50”, “60” or “80”.
Available since version 1.3.5.
box_shadowoptional
Whether and where to add a shadow to the author box.
Accepts “none”, “left” or “right”.
Available since version 1.2.14.
box_borderoptional
Width of the border to add to the author box.
Accepts “none”, “thin” or “thick”.
Available since version 1.2.14.
box_border_coloroptional
The border color of the author box.
Available since version 1.2.14.
box_backgroundoptional
The background color of the author box.
Available since version 1.3.5.
show_headlineoptional
Whether to show the headline above the author data.
Accepts “yes” or “no”.
Available since version 1.3.5.
headline_sizeoptional
Font size used to display the headline.
Accepts “biggest”, “bigger”, “big”, “normal”, “small”, “smaller” or “smallest”.
Available since version 1.3.5.
headline_coloroptional
Color used to display the headline.
Available since version 1.3.5.
headline_alignoptional
Text alignment to display the headline.
Accepts “left”, “justify”, “center” or “right”.
Available since version 1.3.5.
headline_styleoptional
Text style to display the headline.
Accepts “normal”, “bold”, “italics” or “itbo” (italics-bold).
Available since version 1.3.5.
img_styleoptional
Whether and how to shape the author profile image.
Accepts “none”, “rounded”, “circled”.
Available since version 1.2.14.
img_borderoptional
Width of the border to add to the author profile image.
Accepts “none”, “thin” or “thick”.
Available since version 1.3.5.
img_border_coloroptional
The border color of the author profile image.
Available since version 1.3.5.
img_defaultoptional
Default image to show if none uploaded and no gravatar configured.
Accepts “blank”, “mm” (Mistery Man) or “acronym”.
Defaults to blank.
Available since version 1.2.14.
acronym_text_coloroptional
The color used to display the author name acronym.
Available since version 1.3.0.
acronym_bg_coloroptional
The color used to fill the author name acronym background.
Available since version 1.3.0.
name_sizeoptional
Font size used to display the author name.
Accepts “biggest”, “bigger”, “big”, “normal”, “small”, “smaller” or “smallest”.
Available since version 1.2.14.
name_coloroptional
Color used to display the author name.
Available since version 1.2.14.
name_linkoptional
Whether to underline the author name.
Accepts “yes” or “no”.
Available since version 1.2.14.
show_metaoptional
Whether to show author metadata (job position, company…).
Accepts “yes” or “no”.
Available since version 1.3.5.
meta_sizeoptional
Font size used to display the author metadata (job position, company…).
Accepts “biggest”, “bigger”, “big”, “normal”, “small”, “smaller” or “smallest”.
Available since version 1.2.14.
meta_coloroptional
Color used to display the author metadata (job position, company…).
Available since version 1.2.14.
bio_sizeoptional
Font size used to display the author bio.
Accepts “biggest”, “bigger”, “big”, “normal”, “small”, “smaller” or “smallest”.
Available since version 1.2.14.
bio_coloroptional
Color used to display the author bio.
Available since version 1.2.14.
bio_alignoptional
Text alignment to display the author bio.
Accepts “left”, “justify”, “center” or “right”.
Available since version 1.2.14.
bio_styleoptional
Text style to display the author bio.
Accepts “normal”, “bold”, “italics” or “itbo” (italics-bold).
Available since version 1.2.14.
show_iconsoptional
Whether to show the social media icons.
Accepts “yes” or “no”.
Available since version 1.2.14.
icons_sizeoptional
The size of the social media icons.
Accepts “biggest”, “bigger”, “big”, “normal”, “small”, “smaller” or “smallest”.
Available since version 1.2.14.
icons_coloroptional
Color used to display the social media icons.
Available since version 1.2.14.
icons_styleoptional
The styling used to display the social media icons.
Accepts “default”, “squared”, “circled”, “boxed”, “branded”, “branded-squared”, “branded-squared-reverse”, “branded-circled”, “branded-circled-reverse” or “branded-boxed”.
Available since version 1.2.14.
bottom_bgoptional
The color used to fill the background of the bottom section on a “ribbon” layout.
Available since version 1.2.14.
bottom_borderoptional
Width of the border to add at the top of bottom section on a”ribbon” layout.
Accepts “none”, “thin” or “thick”.
Available since version 1.2.14.
bottom_border_coloroptional
The color of the border to add at the top of bottom section on a”ribbon” layout.
Available since version 1.2.14.
hide_if_no_biooptional
Whether to hide the author box if there is not biographical information to show.
Accepts “yes” or “no”.
Available since version 1.2.14.
show_relatedoptional
Whether to show “related posts” link on the author box.
Accepts “yes” or “no”.
Available since version 1.2.5.
related_order_byoptional
The criteria to sort related posts.
Accepts “title”, “date”, “modified”, “comment_count” or “random”.
Available since version 1.2.5.
related_orderoptional
The order to sort related posts.
Accepts “asc” (ascending order) or “desc” (descending order).
Available since version 1.2.5.
related_itemsoptional
Amount of related posts to show in the author box.
Accepts integer.
Available since version 1.2.5.
enable_guest_archiveoptional
Whether to enable guest author archive pages.
Accepts “yes” or “no”.
Available since version 1.2.5.
headlineoptional
The string used as the author box headline.
Accepts plain text.
Available since version 1.2.17.
atoptional
The string used to join author job position and company.
Accepts plain text.
Available since version 1.3.5.
weboptional
The string used as the text of the link to the author profile page or blog.
Accepts plain text.
Available since version 1.3.0.
more_postsoptional
The string used as the text of the toggle to show the related posts of the author.
Accepts plain text.
Available since version 1.3.0.
biooptional
The string used as the text of the toggle to show back the author bio.
Accepts plain text.
Available since version 1.3.0.
about_the_authoroptional
The string used as the label of “author info” tab on the tabbed layout.
Accepts plain text.
Available since version 1.3.0.
related_postsoptional
The string used as the label of “related posts” tab on the tabbed layout.
Accepts plain text.
Available since version 1.3.0.
no_related_postsoptional
The string used to say that the author displayed has no (other) related posts.
Accepts plain text.
Available since version 1.3.1.
meta_separatoroptional
The symbol displayed between author meta data (position, company, profile link…).
Accepts text and unicode characters.
Available since version 2.0.0.
Did this article answer your question?