{"id":250,"date":"2019-02-12T10:22:25","date_gmt":"2019-02-12T09:22:25","guid":{"rendered":"https:\/\/www.molongui.com\/help\/molongui_author_bio\/"},"modified":"2022-02-26T13:10:37","modified_gmt":"2022-02-26T12:10:37","slug":"molongui_author_bio","status":"publish","type":"post","link":"https:\/\/www.molongui.com\/help\/molongui_author_bio\/","title":{"rendered":"molongui_author_bio"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"250\" class=\"elementor elementor-250\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-60656b2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"60656b2\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1c6d603\" data-id=\"1c6d603\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-14b13b2 elementor-widget elementor-widget-text-editor\" data-id=\"14b13b2\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>This shortcode allows you to display the biography of the current post author if no attributes are provided or the name of a given author if you provide the author ID and author type.<\/p>\n<p>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.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d76f564 elementor-widget elementor-widget-heading\" data-id=\"d76f564\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Example<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7cf73ef elementor-widget elementor-widget-text-editor\" data-id=\"7cf73ef\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The trivial shortcode would be:<\/p>\n<div class=\"molongui-shortcode-sample\"><p class=\"molongui-shortcode-sample-title\">Editor input<\/p><div class=\"molongui-shortcode-sample-box molongui-shortcode-sample-input\"><div>[molongui_author_bio]<\/div><\/div><\/div>\n<p>That would display the current post&#8217;s author bio as text. Nothing fancy but very useful in many cases. Check below what the output would look like:<\/p>\n<div class=\"molongui-shortcode-sample\"><p class=\"molongui-shortcode-sample-title\">Frontend output<\/p><div class=\"molongui-shortcode-sample-box molongui-shortcode-sample-output\"><div>Colleen Vance has been a staff writer since 2014. She has been with us since 1995, and, as a senior editor for many years, focussed on national security, international reporting, and features.<\/div><\/div><\/div>\n<p>Should you like to retrieve the bio for a given author, let&#8217;s say a guest author whose ID is 123, you should use the shortcode like this:<\/p>\n<div class=\"molongui-shortcode-sample\"><p class=\"molongui-shortcode-sample-title\">Editor input<\/p><div class=\"molongui-shortcode-sample-box molongui-shortcode-sample-input\"><div>[molongui_author_bio id=123 type=guest]<\/div><\/div><\/div>\n<p>And what if you&#8217;d like to retrieve the short bio for that author? Then you should use the shortcode like this:<\/p>\n<div class=\"molongui-shortcode-sample\"><p class=\"molongui-shortcode-sample-title\">Editor input<\/p><div class=\"molongui-shortcode-sample-box molongui-shortcode-sample-input\"><div>[molongui_author_bio id=123 type=guest length=short]<\/div><\/div><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-580e59a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"580e59a\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3ac9e94\" data-id=\"3ac9e94\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-109b17c elementor-widget elementor-widget-heading\" data-id=\"109b17c\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Attributes<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f99b107 elementor-widget elementor-widget-text-editor\" data-id=\"f99b107\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Check out below all the available attributes this shortcode can take:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-057d724 elementor-widget elementor-widget-text-editor\" data-id=\"057d724\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"molongui-shortcode-attribute \"><div class=\"molongui-shortcode-attribute-name\">id<sub class=\"molongui-shortcode-attribute-optional\">optional<\/sub><\/div><div class=\"molongui-shortcode-attribute-contents\"><div class=\"molongui-shortcode-attribute-description\">Author ID whose data you want to get.<\/div><div class=\"molongui-shortcode-attribute-accepts\">Accepts integer as author ID.<\/div><div class=\"molongui-shortcode-attribute-default\">Defaults to <span>current post author ID<\/span>.<\/div><div class=\"molongui-shortcode-attribute-since\">Available since version 1.0.0.<\/div><\/div><\/div>\n<p><!-- \/wp:shortcode --><!-- wp:shortcode --><\/p>\n<div class=\"molongui-shortcode-attribute \"><div class=\"molongui-shortcode-attribute-name\">type<sub class=\"molongui-shortcode-attribute-optional\">optional<\/sub><\/div><div class=\"molongui-shortcode-attribute-contents\"><div class=\"molongui-shortcode-attribute-description\">The type of author.<\/div><div class=\"molongui-shortcode-attribute-accepts\">Accepts Accepts &#8220;user&#8221; or &#8220;guest&#8221;.<\/div><div class=\"molongui-shortcode-attribute-since\">Available since version 1.0.0.<\/div><\/div><\/div>\n<div class=\"molongui-shortcode-attribute \"><div class=\"molongui-shortcode-attribute-name\">length<sub class=\"molongui-shortcode-attribute-optional\">optional<\/sub><\/div><div class=\"molongui-shortcode-attribute-contents\"><div class=\"molongui-shortcode-attribute-description\">The bio text to retrieve.<\/div><div class=\"molongui-shortcode-attribute-accepts\">Accepts &#8220;long&#8221; or &#8220;short&#8221;.<\/div><div class=\"molongui-shortcode-attribute-default\">Defaults to <span>full<\/span>.<\/div><div class=\"molongui-shortcode-attribute-since\">Available since version 1.1.17.<\/div><\/div><\/div>\n<p><!-- \/wp:shortcode --><!-- wp:shortcode --><\/p>\n<div class=\"molongui-shortcode-attribute \"><div class=\"molongui-shortcode-attribute-name\">display_errors<sub class=\"molongui-shortcode-attribute-optional\">optional<\/sub><\/div><div class=\"molongui-shortcode-attribute-contents\"><div class=\"molongui-shortcode-attribute-description\">Whether to display a message in case of error.<\/div><div class=\"molongui-shortcode-attribute-accepts\">Accepts Accepts &#8220;yes&#8221; or &#8220;no&#8221;.<\/div><div class=\"molongui-shortcode-attribute-default\">Defaults to <span>yes<\/span>.<\/div><div class=\"molongui-shortcode-attribute-since\">Available since version 1.0.0.<\/div><\/div><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cd21df4 elementor-section-content-middle elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cd21df4\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-wide\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-f792251\" data-id=\"f792251\" data-element_type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-76f19a9 elementor-view-default elementor-widget elementor-widget-icon\" data-id=\"76f19a9\" data-element_type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<div class=\"elementor-icon\">\n\t\t\t<i aria-hidden=\"true\" class=\"far fa-lightbulb\"><\/i>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f583b29 elementor-widget elementor-widget-heading\" data-id=\"f583b29\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-heading-title elementor-size-default\">Tip<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-b60b16e\" data-id=\"b60b16e\" data-element_type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8ed4840 elementor-widget elementor-widget-text-editor\" data-id=\"8ed4840\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>You could also retrieve author bios using the <strong><a href=\"https:\/\/www.molongui.com\/help\/molongui_author_meta\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"molongui_author_meta (opens in a new tab)\">molongui_author_meta<\/a><\/strong> shortcode providing either the &#8220;short_bio&#8221; or &#8220;long_bio&#8221; value to the &#8220;key&#8221; attribute.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This shortcode allows you to display the biography of the current post author if no attributes are provided or the name of a given author if you provide the author ID and author type. It can be used anywhere within WordPress where shortcodes are supported. For most users, this will primarily be within the content [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,1],"tags":[19],"class_list":["post-250","post","type-post","status-publish","format-standard","hentry","category-authorship","category-doc","tag-shortcodes"],"_links":{"self":[{"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/comments?post=250"}],"version-history":[{"count":13,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/250\/revisions"}],"predecessor-version":[{"id":1829,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/250\/revisions\/1829"}],"wp:attachment":[{"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/categories?post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/tags?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}