{"id":14210,"date":"2011-09-06T10:46:10","date_gmt":"2011-09-06T10:46:10","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/author-bio-shortcode\/"},"modified":"2014-09-03T19:59:46","modified_gmt":"2014-09-03T19:59:46","slug":"author-bio-shortcode","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/author-bio-shortcode\/","author":3264138,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.5.3","stable_tag":"2.5.3","tested":"4.0.38","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"Author Bio Shortcode","header_author":"Philip John","header_description":"","assets_banners_color":"","last_updated":"2014-09-03 19:59:46","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/philipjohn.co.uk\/","header_plugin_uri":"http:\/\/philipjohn.co.uk\/category\/plugins\/author-bio-shortcode\/","header_author_uri":"http:\/\/philipjohn.co.uk","rating":5,"author_block_rating":0,"active_installs":100,"downloads":9159,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.2","1.2.1","2.0","2.1","2.2","2.3","2.5","2.5.2","2.5.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[132,3252,1714,1713,9266],"plugin_category":[43],"plugin_contributors":[78261],"plugin_business_model":[],"class_list":["post-14210","plugin","type-plugin","status-publish","hentry","plugin_tags-author","plugin_tags-author-description","plugin_tags-bio","plugin_tags-biography","plugin_tags-user-description","plugin_category-customization","plugin_contributors-philipjohn","plugin_committers-philipjohn"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/author-bio-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin allows you to enter [author_bio] anywhere within the content of a post or page to display the biography of the author of that post or page.<\/p>\n\n<p>The output now contains HTML, which can be customised very easily with extra parameters - see Installation for a how-to - to sit around the bio, as defined in \/wp-admin\/profile.php.<\/p>\n\n<p>By default the shortcode produces the author of that post or page. However, extra parameters enable you to specify a different user whose bio you want to print out - see usage instructions.<\/p>\n\n<p>Feature requests welcomed with open arms!<\/p>\n\n<!--section=installation-->\n<p>Simple install in \/wp-content\/plugins like any other!<\/p>\n\n<h4>Usage<\/h4>\n\n<p>Simply place [author_bio] anywhere within your post\/page content.<\/p>\n\n<p>Additionally, you can pass one of the following attributes to specify a different user;<\/p>\n\n<ul>\n<li>id - accepts the user ID<\/li>\n<li>username - accepts the username<\/li>\n<li>email - accepts the user e-mail address<\/li>\n<\/ul>\n\n<p>For example;\n    [author_bio]\n    [author_bio id=\"4\"]\n    [author_bio username=\"admin\"]\n    [author_bio email=\"user@example.com\"]<\/p>\n\n<p>You can also have the author's avatar added, by using the avatar parameter like so;\n    [author_bio avatar=\"yes\"]\nWarning: if you don't want the avatar, do not change the above to \"no\" as it will not work, simply change back to <code>[author_bio]<\/code> alone.<\/p>\n\n<p>It's possible to add the author's name, too by adding the name parameter;\n    [author_bio name=\"yes\"]\nWarning: As with the avatar option, leave the name parameter out completely to hide the name.<\/p>\n\n<p>Additionally, you can make the author's name link to his\/her website as defined in their profile;\n    [author_bio name=\"yes\" name_link=\"yes\"]<\/p>\n\n<p>You can also customise the HTML output which defaults to;<\/p>\n\n\n        \n            \n        \n        \n            <p> ... the author bio ... <\/p>\n        \n    \n\n<p>There are 7 parameters that describe the HTML above;<\/p>\n\n<ul>\n<li>'container_element' defaults to 'div' and creates the first div in the example above<\/li>\n<li>'container_class' defaults to 'author_bio_shortcode' as seen above<\/li>\n<li>'name_container' defaults to h3<\/li>\n<li>'name_class' defaults to 'name'<\/li>\n<li>'name_pre' is empty by default and can be used to add text before the author's name<\/li>\n<li>'name_post' is empty by default and can be used to add text after the author's name<\/li>\n<li>'avatar_container_element' defaults to 'div' and creates the element that surrounds the avatar image<\/li>\n<li>'avatar_container_class' defaults to 'avatar' and adds itself to the 'avatar_container_element'<\/li>\n<li>'bio_container_element' defaults to 'div' and wraps the bio text<\/li>\n<li>'bio_container_class' defaults to 'bio' and is used in the bio container element<\/li>\n<li>'bio_paragraph' defaults to true and decides whether to put the bio text into a Paragrah tag. Note, only a value of zero (0) will change it, e.g. <code>bio_paragraph=0<\/code><\/li>\n<\/ul>\n\n<p>Here is an example using all the HTML parameters to re-create the above example code;\n    [author_bio container_element=\"div\" container_class=\"author-bio-shortcode\" avatar_container_element=\"div\" avatar_container_class=\"avatar\" bio_container_element=\"div\" bio_container_class=\"bio\" bio_paragraph=\"true\"]<\/p>\n\n<p>This example shows how to remove the P tag from around the bio text;\n    [author_bio bio_paragraph=0]<\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First commit<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Ensured compatibility with WordPress v3.2.1<\/li>\n<li>Added PHPDoc commenting<\/li>\n<li>New activation function to check version number<\/li>\n<li>Now using more obscure function naming<\/li>\n<li>Added extra options for specifying the user<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Tidied up PHP Notices (kudos to <a href=\"http:\/\/www.leewillis.co.uk\">Lee Willis<\/a> for pointing that out!)<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Added ability to include the author's avatar alongside the bio<\/li>\n<li>Added HTML to provide for easier styling<\/li>\n<li>Added additional parameters to change the default HTML output<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Added name parameters <\/li>\n<\/ul>\n\n<h4>2.2<\/h4>\n\n<ul>\n<li>Fix for deprecated function get_user_id_from_string()<\/li>\n<\/ul>\n\n<h4>2.3<\/h4>\n\n<ul>\n<li>Versioning mishap (Phil can't count)<\/li>\n<\/ul>\n\n<h4>2.5.1<\/h4>\n\n<ul>\n<li>Where did v2.4 go?<\/li>\n<li>i18n fixes<\/li>\n<\/ul>\n\n<h4>2.5.2<\/h4>\n\n<ul>\n<li>PHP Notice fixes<\/li>\n<li>Made sure Author ID is always integer<\/li>\n<\/ul>\n\n<h4>2.5.3<\/h4>\n\n<ul>\n<li>PHP Notice fixes<\/li>\n<li>3.9 compatibility check<\/li>\n<\/ul>","raw_excerpt":"Provides the [author_bio] shortcode for embedding the bio of an author anywhere in the post\/page content.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=14210"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/philipjohn"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14210"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14210"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14210"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14210"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14210"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}