{"id":247,"date":"2019-02-12T10:20:18","date_gmt":"2019-02-12T09:20:18","guid":{"rendered":"https:\/\/www.molongui.com\/help\/molongui_author_name\/"},"modified":"2024-08-14T13:47:19","modified_gmt":"2024-08-14T11:47:19","slug":"molongui_author_name","status":"publish","type":"post","link":"https:\/\/www.molongui.com\/help\/molongui_author_name\/","title":{"rendered":"molongui_author_name"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"247\" class=\"elementor elementor-247\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8f91617 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8f91617\" 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-b04f197\" data-id=\"b04f197\" 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-c6b6c13 elementor-widget elementor-widget-text-editor\" data-id=\"c6b6c13\" 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 name 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>\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-3da32b6 elementor-section-content-middle elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3da32b6\" 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-4ffaec1\" data-id=\"4ffaec1\" 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-bcb7c65 elementor-view-default elementor-widget elementor-widget-icon\" data-id=\"bcb7c65\" 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=\"fas fa-exclamation-circle\"><\/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-63f2069 elementor-widget elementor-widget-heading\" data-id=\"63f2069\" 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\">Important<\/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-74ddc4f\" data-id=\"74ddc4f\" 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-cbc7bdc elementor-widget elementor-widget-text-editor\" data-id=\"cbc7bdc\" 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>On co-authored posts, only the name of the main author \u2014first author on the list \u2014 is displayed. If you wish to display all the author names for a co-authored post, check out the <strong><a href=\"https:\/\/www.molongui.com\/help\/molongui_byline\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"[molongui_byline] (opens in a new tab)\">molongui_post_byline<\/a><\/strong> shortcode.<\/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<section class=\"elementor-section elementor-top-section elementor-element elementor-element-dd4cac2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"dd4cac2\" 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-b8e177a\" data-id=\"b8e177a\" 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-f647c87 elementor-widget elementor-widget-text-editor\" data-id=\"f647c87\" 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>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-a78318f elementor-widget elementor-widget-heading\" data-id=\"a78318f\" 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-8472189 elementor-widget elementor-widget-text-editor\" data-id=\"8472189\" 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_name]<\/div><\/div><\/div>\n<p>That would display the current post&#8217;s author name 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<\/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-27ffe31 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"27ffe31\" 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-b4e8191\" data-id=\"b4e8191\" 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-1b587bc elementor-widget elementor-widget-heading\" data-id=\"1b587bc\" 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-18881c0 elementor-widget elementor-widget-text-editor\" data-id=\"18881c0\" 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-0c0da40 elementor-widget elementor-widget-text-editor\" data-id=\"0c0da40\" 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<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<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This shortcode allows you to display the name 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. Important On co-authored posts, only the name of the main author \u2014first author on the list \u2014 is displayed. If you [&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-247","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\/247","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=247"}],"version-history":[{"count":10,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/247\/revisions"}],"predecessor-version":[{"id":2600,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/247\/revisions\/2600"}],"wp:attachment":[{"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/media?parent=247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/categories?post=247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/tags?post=247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}