{"id":41760,"date":"2024-11-24T12:38:40","date_gmt":"2024-11-24T10:38:40","guid":{"rendered":"https:\/\/coma.lv\/2024\/11\/24\/how-to-add-an-author-info-box-to-wordpress-posts\/"},"modified":"2024-11-24T12:38:40","modified_gmt":"2024-11-24T10:38:40","slug":"how-to-add-an-author-info-box-to-wordpress-posts","status":"publish","type":"post","link":"https:\/\/coma.lv\/en\/2024\/11\/24\/how-to-add-an-author-info-box-to-wordpress-posts\/","title":{"rendered":"How to Add an Author Info Box to WordPress Posts"},"content":{"rendered":"\n<p style=\"text-align: left;\">An author bio box is a small area where you can display information about the post author, with links to your site and social media profiles. In this article we will show you how to do it.<\/p>\n<h2 style=\"text-align: left;\">When and Why You Need an Author Bio Box<\/h2>\n<p style=\"text-align: left;\">Being able to see who is behind the articles helps increase trust in and authority of the site among other users. For single-author sites you can simply add an \u201cAbout me\u201d page. However, for multi-author blogs you will need to add an author info box under every post. This box encourages authors to engage with their readers and gives authors extra incentive to build a following. If you accept guest posts, an author info box can attract more people to you.<\/p>\n<p style=\"text-align: left;\">There are many ways to add an author info box and we will show you two methods so that you can choose what suits your site best.<\/p>\n<h2 style=\"text-align: left;\">Method One: An Author Box in Posts with a Plugin<\/h2>\n<p style=\"text-align: left;\">Many site owners want to display author information at the end of a post. First install and activate the Molongui Authorship plugin. Every author on your site will need to add their own information. They can do this by logging in to their WordPress account and clicking the Authors \u2013 Add New link in the WordPress admin.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35147 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-040308.jpg\" alt=\"WordPress\" width=\"823\" height=\"791\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-040308.jpg 823w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-040308-300x288.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-040308-768x738.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-040308-36x36.jpg 36w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-040308-705x678.jpg 705w\" sizes=\"auto, (max-width: 823px) 100vw, 823px\" \/><\/p>\n<p style=\"text-align: left;\">As the site administrator, you can fill in this information yourself by editing each user profile. To do this, go to the Users &gt; All Users or Authors &gt; All Authors page and click the edit link under each user whose profile you want to edit.<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/11\/admin-users.jpg\" alt=\"WordPress\" title=\"\"><\/p>\n<p style=\"text-align: left;\">Now you can open any WordPress post on your site and you will see the author info box at the bottom of the post.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35150 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-041506.jpg\" alt=\"WordPress\" width=\"847\" height=\"290\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-041506.jpg 847w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-041506-300x103.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-041506-768x263.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-041506-845x290.jpg 845w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-041506-705x241.jpg 705w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/p>\n<p style=\"text-align: left;\">To add or change a post&#8217;s author, create or edit a post. Scroll to the Authors section in the right sidebar. Click \u201c+\u201d and choose an author from the list. You can add one or several authors and arrange them in order.<\/p>\n<h3 style=\"text-align: left;\">Customizing the Author Info Box Display<\/h3>\n<p style=\"text-align: left;\">You can personalize the look and content of the Molongui Authorship author box to match your site&#8217;s design. Go to Authors &gt; Author Box Editor. Choose the design, layout, colors and the information to display. If you want to customize it even more and feel confident working with CSS, you can add and edit your own CSS code on the Advanced tab.<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-35153 size-full\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-045913.jpg\" alt=\"WordPress\" width=\"1800\" height=\"727\" title=\"\" srcset=\"https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-045913.jpg 1800w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-045913-300x121.jpg 300w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-045913-1030x416.jpg 1030w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-045913-768x310.jpg 768w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-045913-1536x620.jpg 1536w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-045913-1500x606.jpg 1500w, https:\/\/coma.lv\/wp-content\/uploads\/2025\/04\/Ekranuznemums-2025-04-28-045913-705x285.jpg 705w\" sizes=\"auto, (max-width: 1800px) 100vw, 1800px\" \/><\/p>\n<p style=\"text-align: left;\">Additional features are available in the premium version, Molongui Authorship Pro.<\/p>\n<h2 style=\"text-align: left;\">Method Two: Author Information in a Sidebar Widget for Single Posts<\/h2>\n<p style=\"text-align: left;\">The method above is good if you want author information to appear under posts. However, the free version of Molongui Authorship does not let you display the author box in the WordPress sidebar; this feature is available only in the Pro version of the plugin. To display the author bio in the sidebar or any widget area, you can use the Meks Smart Author Widgets plugin. After installing and activating it, go to the Appearance \u2013 Widgets page. You will see Meks Smart Author in the list of available widgets. Add it to the sidebar where you want to display the author information.<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/11\/smartauthorwidget.jpg\" alt=\"WordPress\" title=\"\"><\/p>\n<p style=\"text-align: left;\">The widget has a bunch of settings. The most important one, next to which you need to tick the box, is Automatically detect author.<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/11\/autodetectauthorwidget.jpg\" alt=\"WordPress\" title=\"\"><\/p>\n<p style=\"text-align: left;\">Save the settings and go to the site to see the plugin in action. This plugin also collects information from author profiles, so your authors will also need to fill in their bio.<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/11\/authorinfowidget.jpg\" alt=\"WordPress\" title=\"\"><\/p>\n<h2 style=\"text-align: left;\">Method Three: Adding an Author Info Box with Code<\/h2>\n<p style=\"text-align: left;\">Both of the methods above were based on using plugins. If for some reason you need to add an author info box manually, here is how you can do it. First you will need to add code to the functions.php file:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nfunction wpb_author_info_box( $content ) {\r\n\r\n    global $post;\r\n\r\n    if ( is_single() &amp;amp;&amp;amp; isset( $post-&amp;gt;post_author ) ) {\r\n\r\n        $author_details = &amp;#039;&amp;#039;;\r\n\r\n        $display_name = get_the_author_meta( &amp;#039;display_name&amp;#039;, $post-&amp;gt;post_author );\r\n\r\n        if ( empty( $display_name ) ) {\r\n            $display_name = get_the_author_meta( &amp;#039;nickname&amp;#039;, $post-&amp;gt;post_author );\r\n        }\r\n\r\n        $user_description = get_the_author_meta( &amp;#039;user_description&amp;#039;, $post-&amp;gt;post_author );\r\n        $user_website     = get_the_author_meta( &amp;#039;url&amp;#039;, $post-&amp;gt;post_author );\r\n        $user_posts       = get_author_posts_url( get_the_author_meta( &amp;#039;ID&amp;#039;, $post-&amp;gt;post_author ) );\r\n        $user_email       = get_the_author_meta( &amp;#039;user_email&amp;#039;, $post-&amp;gt;post_author );\r\n\r\n        \/\/ Author name\r\n        if ( ! empty( $display_name ) ) {\r\n            $author_details .= &amp;#039;&amp;lt;h4&amp;gt;About &amp;#039; . esc_html( $display_name ) . &amp;#039;&amp;lt;\/h4&amp;gt;&amp;#039;;\r\n        }\r\n\r\n        \/\/ Always show avatar\r\n        $author_details .= &amp;#039;&amp;lt;div class=&amp;quot;author_avatar&amp;quot;&amp;gt;&amp;#039; . get_avatar( $user_email, 90 ) . &amp;#039;&amp;lt;\/div&amp;gt;&amp;#039;;\r\n\r\n        \/\/ Bio or fallback\r\n        if ( ! empty( $user_description ) ) {\r\n            $author_details .= &amp;#039;&amp;lt;p&amp;gt;&amp;#039; . nl2br( esc_html( $user_description ) ) . &amp;#039;&amp;lt;\/p&amp;gt;&amp;#039;;\r\n        } else {\r\n            $author_details .= &amp;#039;&amp;lt;p&amp;gt;This author has not added a bio yet.&amp;lt;\/p&amp;gt;&amp;#039;;\r\n        }\r\n\r\n        \/\/ Links\r\n        $author_details .= &amp;#039;&amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;&amp;#039; . esc_url( $user_posts ) . &amp;#039;&amp;quot;&amp;gt;View all posts by &amp;#039; . esc_html( $display_name ) . &amp;#039;&amp;lt;\/a&amp;gt;&amp;#039;;\r\n\r\n        if ( ! empty( $user_website ) ) {\r\n            $author_details .= &amp;#039; | &amp;lt;a href=&amp;quot;&amp;#039; . esc_url( $user_website ) . &amp;#039;&amp;quot; target=&amp;quot;_blank&amp;quot; rel=&amp;quot;nofollow&amp;quot;&amp;gt;Website&amp;lt;\/a&amp;gt;&amp;#039;;\r\n        }\r\n\r\n        $author_details .= &amp;#039;&amp;lt;\/p&amp;gt;&amp;#039;;\r\n\r\n        \/\/ Append to content\r\n        $content .= &amp;#039;&amp;lt;footer class=&amp;quot;author_bio_section&amp;quot;&amp;gt;&amp;#039; . $author_details . &amp;#039;&amp;lt;\/footer&amp;gt;&amp;#039;;\r\n    }\r\n\r\n    return $content;\r\n}\r\n\r\nadd_filter( &amp;#039;the_content&amp;#039;, &amp;#039;wpb_author_info_box&amp;#039;, 99 );\r\n<\/pre>\n<p style=\"text-align: left;\">This code simply collects information about the author and displays it at the bottom under WordPress posts. You need to tidy up the info box so that it looks right and matches your theme. You can use this CSS in your theme or stylesheet. You can change it as you like depending on your needs.<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n.author_bio_section{\r\nbackground: none repeat scroll 0 0 #F5F5F5;\r\npadding: 15px;\r\nborder: 1px solid #ccc;\r\n}\r\n\r\n.author_name{\r\nfont-size:16px;\r\nfont-weight: bold;\r\n}\r\n\r\n.author_details img {\r\nborder: 1px solid #D8D8D8;\r\nborder-radius: 50%;\r\nfloat: left;\r\nmargin: 0 10px 10px 0;\r\n}\r\n<\/pre>\n<p style=\"text-align: left;\">This is how the author info box looked on our demo site.<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/11\/manualauthorinfo.jpg\" alt=\"WordPress\" title=\"\"><\/p>\n<hr \/>\n<p style=\"text-align: left;\"><em>Our specialization is WordPress website development and maintenance. Contact us for a free consultation \u2014 <a href=\"mailto:vadim@coma.lv\">vadim@coma.lv<\/a>, <a href=\"tel:+37129394520\">+371 29394520<\/a><\/em><\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>An author bio box is a small area where you can display information about the post author, with links to your site and social media profiles. In this article we will show you how to do it. When and Why You Need an Author Bio Box Being able to see who is behind the articles [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":38209,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1225,1407],"tags":[],"class_list":["post-41760","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","category-tutorials"],"_links":{"self":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts\/41760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/comments?post=41760"}],"version-history":[{"count":0,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/posts\/41760\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/media\/38209"}],"wp:attachment":[{"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/media?parent=41760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/categories?post=41760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coma.lv\/en\/wp-json\/wp\/v2\/tags?post=41760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}