{"id":253,"date":"2019-02-12T10:23:03","date_gmt":"2019-02-12T09:23:03","guid":{"rendered":"https:\/\/www.molongui.com\/help\/molongui_author_avatar\/"},"modified":"2022-02-26T15:58:25","modified_gmt":"2022-02-26T14:58:25","slug":"molongui_author_avatar","status":"publish","type":"post","link":"https:\/\/www.molongui.com\/help\/molongui_author_avatar\/","title":{"rendered":"molongui_author_avatar"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"253\" class=\"elementor elementor-253\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-bf73ff3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"bf73ff3\" 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-c319089\" data-id=\"c319089\" 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-612c4f3 elementor-widget elementor-widget-text-editor\" data-id=\"612c4f3\" 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 avatar of the current post author if no attributes are provided or the avatar 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-692b455 elementor-widget elementor-widget-heading\" data-id=\"692b455\" 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-20beaf8 elementor-widget elementor-widget-text-editor\" data-id=\"20beaf8\" 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 to get the profile image of one of your authors 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_avatar]<\/div><\/div><p class=\"molongui-shortcode-sample-title\">Frontend output<\/p><\/div>\n<p>\u00a0<\/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-c499ff1 elementor-widget elementor-widget-image\" data-id=\"c499ff1\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.molongui.com\/help\/wp-content\/uploads\/sites\/3\/author_avatar-150x150.png\" class=\"attachment-thumbnail size-thumbnail wp-image-1874\" alt=\"\" \/>\t\t\t\t\t\t\t\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-966c744 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"966c744\" 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-a54ef94\" data-id=\"a54ef94\" 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-608b05e elementor-widget elementor-widget-heading\" data-id=\"608b05e\" data-element_type=\"widget\" id=\"attributes\" 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-dcb8c43 elementor-widget elementor-widget-text-editor\" data-id=\"dcb8c43\" 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-4c6da5f elementor-widget elementor-widget-text-editor\" data-id=\"4c6da5f\" 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 name you want to be displayed.<\/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<!-- \/wp:shortcode --><!-- wp:shortcode -->\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 to display.<\/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<!-- \/wp:shortcode --><!-- wp:shortcode -->\n<div class=\"molongui-shortcode-attribute \"><div class=\"molongui-shortcode-attribute-name\">size<sub class=\"molongui-shortcode-attribute-optional\">optional<\/sub><\/div><div class=\"molongui-shortcode-attribute-contents\"><div class=\"molongui-shortcode-attribute-description\">Size the displayed image must have.<\/div><div class=\"molongui-shortcode-attribute-accepts\">Accepts Any registered image size (&#8220;thumbnail&#8221;, &#8220;medium&#8221;, &#8220;medium_large&#8221;, &#8220;large&#8221;, &#8220;full&#8221;&#8230;).<\/div><div class=\"molongui-shortcode-attribute-since\">Available since version 1.0.0.<\/div><\/div><\/div>\n<!-- \/wp:shortcode --><!-- wp:shortcode -->\n<div class=\"molongui-shortcode-attribute \"><div class=\"molongui-shortcode-attribute-name\">width<sub class=\"molongui-shortcode-attribute-optional\">optional<\/sub><\/div><div class=\"molongui-shortcode-attribute-contents\"><div class=\"molongui-shortcode-attribute-description\">The width in pixels the avatar must have. If set, the &#8220;size&#8221; attribute is ignored<\/div><div class=\"molongui-shortcode-attribute-accepts\">Accepts Integer.<\/div><div class=\"molongui-shortcode-attribute-default\">Defaults to <span>150<\/span>.<\/div><div class=\"molongui-shortcode-attribute-since\">Available since version 1.1.8.<\/div><\/div><\/div>\n<!-- \/wp:shortcode --><!-- wp:shortcode -->\n<div class=\"molongui-shortcode-attribute \"><div class=\"molongui-shortcode-attribute-name\">height<sub class=\"molongui-shortcode-attribute-optional\">optional<\/sub><\/div><div class=\"molongui-shortcode-attribute-contents\"><div class=\"molongui-shortcode-attribute-description\">The height in pixels the avatar must have. If set, the &#8220;size&#8221; attribute is ignored<\/div><div class=\"molongui-shortcode-attribute-accepts\">Accepts Integer.<\/div><div class=\"molongui-shortcode-attribute-default\">Defaults to <span>150<\/span>.<\/div><div class=\"molongui-shortcode-attribute-since\">Available since version 1.1.8.<\/div><\/div><\/div>\n<!-- \/wp:shortcode --><!-- wp:shortcode -->\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 retrieving the author name<\/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 avatar of the current post author if no attributes are provided or the avatar 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-253","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\/253","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=253"}],"version-history":[{"count":11,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/253\/revisions"}],"predecessor-version":[{"id":2018,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/253\/revisions\/2018"}],"wp:attachment":[{"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/media?parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/categories?post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/tags?post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}