{"id":251,"date":"2019-02-12T10:22:36","date_gmt":"2019-02-12T09:22:36","guid":{"rendered":"https:\/\/www.molongui.com\/help\/molongui_author_mail\/"},"modified":"2022-02-26T13:10:48","modified_gmt":"2022-02-26T12:10:48","slug":"molongui_author_mail","status":"publish","type":"post","link":"https:\/\/www.molongui.com\/help\/molongui_author_mail\/","title":{"rendered":"molongui_author_mail"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"251\" class=\"elementor elementor-251\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4bc1ad2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4bc1ad2\" 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-1b39065\" data-id=\"1b39065\" 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-5b91f7b elementor-widget elementor-widget-text-editor\" data-id=\"5b91f7b\" 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 email address 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-32af832 elementor-widget elementor-widget-heading\" data-id=\"32af832\" 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-4ca7d3d elementor-widget elementor-widget-text-editor\" data-id=\"4ca7d3d\" 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_mail]<\/div><\/div><\/div>\n<p>That would display the current post&#8217;s author email address as plain 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>example@email.com<\/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-ff35517 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ff35517\" 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-57e93b4\" data-id=\"57e93b4\" 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-40deff4 elementor-widget elementor-widget-heading\" data-id=\"40deff4\" 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-660a9b8 elementor-widget elementor-widget-text-editor\" data-id=\"660a9b8\" 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-2a03da8 elementor-widget elementor-widget-text-editor\" data-id=\"2a03da8\" 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 email address 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 [&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-251","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\/251","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=251"}],"version-history":[{"count":22,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/251\/revisions"}],"predecessor-version":[{"id":1832,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/251\/revisions\/1832"}],"wp:attachment":[{"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/media?parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/categories?post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/tags?post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}