{"id":2737,"date":"2026-09-20T16:03:52","date_gmt":"2026-09-20T14:03:52","guid":{"rendered":"https:\/\/www.molongui.com\/help\/?p=2737"},"modified":"2026-09-20T16:03:54","modified_gmt":"2026-09-20T14:03:54","slug":"how-to-choose-the-avatar-source-in-molongui_author_avatar","status":"publish","type":"post","link":"https:\/\/www.molongui.com\/help\/how-to-choose-the-avatar-source-in-molongui_author_avatar\/","title":{"rendered":"How to Choose the Avatar Source in [molongui_author_avatar]"},"content":{"rendered":"\n<p>The <code>source<\/code> attribute in <code>[molongui_author_avatar]<\/code> lets you control which avatar source Molongui Authorship Pro should use.<\/p>\n\n\n\n<p>This is useful when you want a shortcode to behave differently from the normal avatar resolution used elsewhere on your site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Available source values<\/h2>\n\n\n\n<p>The <code>source<\/code> attribute accepts the following values:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>auto<\/code> \u2014 Use the normal Molongui Authorship avatar resolution.<\/li>\n\n\n\n<li><code>local<\/code> \u2014 Prefer the locally uploaded avatar.<\/li>\n\n\n\n<li><code>gravatar<\/code> \u2014 Prefer the Gravatar associated with the author&#8217;s email address.<\/li>\n\n\n\n<li><code>acronym<\/code> \u2014 Display an acronym generated from the author&#8217;s name.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Use automatic avatar resolution<\/h2>\n\n\n\n<p>Use <code>source=\"auto\"<\/code> when you want Molongui Authorship to choose the avatar according to your global settings:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;molongui_author_avatar source=\"auto\"]<\/code><\/pre>\n\n\n\n<p>With Local Avatars, Gravatar, and the Custom Default Avatar enabled, the normal resolution is:<\/p>\n\n\n\n<p><strong>Local Avatar \u2192 Gravatar \u2192 Custom Default Avatar<\/strong><\/p>\n\n\n\n<p>If the Custom Default Avatar is disabled while Gravatar is enabled, the WordPress Default Avatar can be used instead.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prefer the Local Avatar<\/h2>\n\n\n\n<p>Use <code>source=\"local\"<\/code> to make the locally uploaded avatar the preferred source:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;molongui_author_avatar source=\"local\"]<\/code><\/pre>\n\n\n\n<p>If no Local Avatar is available, Molongui Authorship can continue to the configured fallback.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;molongui_author_avatar source=\"local\" default=\"acronym\"]<\/code><\/pre>\n\n\n\n<p>This uses the Local Avatar when available and displays an acronym otherwise.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prefer Gravatar<\/h2>\n\n\n\n<p>Use <code>source=\"gravatar\"<\/code> when you want to request the author&#8217;s Gravatar first:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;molongui_author_avatar source=\"gravatar\"]<\/code><\/pre>\n\n\n\n<p>If the author does not have a Gravatar, Molongui Authorship uses the appropriate fallback according to the shortcode and your global avatar settings.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;molongui_author_avatar source=\"gravatar\" default=\"acronym\"]<\/code><\/pre>\n\n\n\n<p>This displays the author&#8217;s Gravatar when available and an acronym otherwise.<\/p>\n\n\n\n<p>To display nothing when no Gravatar is available:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;molongui_author_avatar source=\"gravatar\" default=\"none\"]<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Display an acronym directly<\/h2>\n\n\n\n<p>Use <code>source=\"acronym\"<\/code> when you want to display an acronym instead of an image:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;molongui_author_avatar source=\"acronym\"]<\/code><\/pre>\n\n\n\n<p>This bypasses Local Avatar and Gravatar selection and displays the generated acronym directly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Global avatar settings still apply<\/h2>\n\n\n\n<p>The settings under <strong>Authors &gt; Settings &gt; General<\/strong> act as global master switches.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If Local Avatars are disabled globally, <code>source=\"local\"<\/code> cannot force Molongui Authorship to use them.<\/li>\n\n\n\n<li>If Gravatar is disabled globally, <code>source=\"gravatar\"<\/code> cannot re-enable Gravatar requests.<\/li>\n<\/ul>\n\n\n\n<p>The shortcode can choose how enabled avatar sources are used, but it cannot override a source that has been disabled globally.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What happens if you omit the source attribute?<\/h2>\n\n\n\n<p>The <code>source<\/code> attribute is optional.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;molongui_author_avatar]<\/code><\/pre>\n\n\n\n<p>Shortcodes without an explicit <code>source<\/code> keep the existing legacy behavior for backward compatibility.<\/p>\n\n\n\n<p>If you want the shortcode to use the new global avatar resolution explicitly, use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;molongui_author_avatar source=\"auto\"]<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The source attribute in [molongui_author_avatar] lets you control which avatar source Molongui Authorship Pro should use. This is useful when you want a shortcode to behave differently from the normal avatar resolution used elsewhere on your site. Available source values The source attribute accepts the following values: Use automatic avatar resolution Use source=&#8221;auto&#8221; when 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":[61,12,19],"class_list":["post-2737","post","type-post","status-publish","format-standard","hentry","category-authorship","category-doc","tag-avatar","tag-howto","tag-shortcodes"],"_links":{"self":[{"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/2737","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=2737"}],"version-history":[{"count":1,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/2737\/revisions"}],"predecessor-version":[{"id":2738,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/2737\/revisions\/2738"}],"wp:attachment":[{"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/media?parent=2737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/categories?post=2737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/tags?post=2737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}