{"id":252,"date":"2019-02-12T10:22:48","date_gmt":"2019-02-12T09:22:48","guid":{"rendered":"https:\/\/www.molongui.com\/help\/molongui_author_meta\/"},"modified":"2022-02-26T13:18:29","modified_gmt":"2022-02-26T12:18:29","slug":"molongui_author_meta","status":"publish","type":"post","link":"https:\/\/www.molongui.com\/help\/molongui_author_meta\/","title":{"rendered":"molongui_author_meta"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"252\" class=\"elementor elementor-252\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6359c22 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6359c22\" 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-ce56317\" data-id=\"ce56317\" 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-559499e elementor-widget elementor-widget-text-editor\" data-id=\"559499e\" 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 any author meta data from 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-4cd970d elementor-widget elementor-widget-heading\" data-id=\"4cd970d\" 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-0ac608c elementor-widget elementor-widget-text-editor\" data-id=\"0ac608c\" 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_meta key=twitter]<\/div><\/div><\/div>\n<p>That would display the current post&#8217;s author meta 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>@colleenVance<\/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-c627344 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c627344\" 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-2774924\" data-id=\"2774924\" 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-841377f elementor-widget elementor-widget-heading\" data-id=\"841377f\" 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-3c74e7f elementor-widget elementor-widget-text-editor\" data-id=\"3c74e7f\" 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-b297757 elementor-widget elementor-widget-text-editor\" data-id=\"b297757\" 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\">key<sub class=\"molongui-shortcode-attribute-required\">required<\/sub><\/div><div class=\"molongui-shortcode-attribute-contents\"><div class=\"molongui-shortcode-attribute-description\">Meta key name.<\/div><div class=\"molongui-shortcode-attribute-accepts\">Accepts &#8220;first_name&#8221;, &#8220;last_name&#8221;, &#8220;phone&#8221;, &#8220;mail&#8221;, &#8220;web&#8221;, &#8220;job&#8221;, &#8220;company&#8221;, &#8220;company_link&#8221;, &#8220;post_count&#8221;, &#8220;page_count&#8221;, &#8220;{post_type}_count&#8221;, &#8220;twitter&#8221;, &#8220;facebook&#8221;&#8230; and any other social media key name.<\/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\">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 any author meta data from 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 [&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-252","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\/252","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=252"}],"version-history":[{"count":7,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":1847,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/posts\/252\/revisions\/1847"}],"wp:attachment":[{"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.molongui.com\/help\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}