{"id":104,"date":"2026-05-05T12:30:06","date_gmt":"2026-05-05T11:30:06","guid":{"rendered":"https:\/\/documentation.userswp.io\/?post_type=gd_place&#038;p=104"},"modified":"2026-05-05T12:30:07","modified_gmt":"2026-05-05T11:30:07","slug":"uwp-user-badge","status":"publish","type":"gd_place","link":"https:\/\/userswp.io\/documentation\/article\/core-widgets\/uwp-user-badge\/","title":{"rendered":"UWP > User Badge"},"content":{"rendered":"<section class=\"alert alert-success dashed\">All Widgets come as Widgets, Shortcodes, or Blocks. Learn more about our <a href=\"https:\/\/userswp.io\/documentation\/article\/what-makes-userswp-widgets-special\/\">Super Duper Widgets<\/a>.<\/section>\n\n\n<p>The <strong>UWP &gt; User Badge<\/strong> widget is used to display a user badge. In addition to the widget, you can use the <strong>[uwp_user_badge]<\/strong> shortcode to display the badge.<\/p>\n\n<h2>Widget Options<\/h2>\n\n<ul class=\"wp-block-list\">\n<li><strong>User ID &#8211; <\/strong>Leave blank to use the current user ID.<\/li>\n<li><strong>Field Key &#8211; <\/strong>Enter the custom field key, such as <strong>first_name<\/strong>.<\/li>\n<li><strong>Field Condition &#8211; <\/strong>Select the custom field condition, such as <strong>is equal<\/strong>.<\/li>\n<li><strong>Value to Match &#8211; <\/strong>Match this text with the field value to display the user badge.<\/li>\n<li><strong>Badge &#8211; <\/strong>Enter the badge text. Leave blank to show the field title as a badge. You can also use <strong>%%input%%<\/strong>, <strong>%%profile_url%%<\/strong>, or other field keys such as <strong>%%email%%<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Design<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Type &#8211; <\/strong>Select the badge type.<\/li>\n<li><strong>Shadow &#8211; <\/strong>Select the badge shadow type.<\/li>\n<li><strong>Badge Color &#8211; <\/strong>Select the badge color option.<\/li>\n<li><strong>Badge Background Color &#8211; <\/strong>Set the badge background color.<\/li>\n<li><strong>Badge Text Color &#8211; <\/strong>Set the badge text color.<\/li>\n<li><strong>Badge Size &#8211; <\/strong>Select the size of the badge.<\/li>\n<li><strong>Alignment &#8211; <\/strong>Choose how the item should be positioned on the page.<\/li>\n<li><strong>Icon Class &#8211; <\/strong>Enter a Font Awesome icon class, such as <strong>fas fa-award<\/strong>.<\/li>\n<li><strong>Extra Class &#8211; <\/strong>Add an extra wrapper class for custom styling.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Click Action<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Link URL &#8211; <\/strong>Enter a badge link URL. You can use <strong>%%input%%<\/strong> for a link or <strong>%%profile_url%%<\/strong> for the user profile URL.<\/li>\n<li><strong>Open Link in New Window &#8211; <\/strong>Enable this option to open the link in a new window.<\/li>\n<li><strong>Popover Title &#8211; <\/strong>Enter title text to reveal on click. You can use <strong>%%input%%<\/strong> or field keys such as <strong>%%email%%<\/strong>.<\/li>\n<li><strong>Popover Text &#8211; <\/strong>Enter text to reveal on click. You can use <strong>%%input%%<\/strong> or field keys such as <strong>%%email%%<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Hover Action<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Tooltip Text &#8211; <\/strong>Enter text to reveal on hover. You can use <strong>%%input%%<\/strong> or field keys such as <strong>%%email%%<\/strong>. This option cannot be used with popover text.<\/li>\n<li><strong>Hover Content &#8211; <\/strong>Change the badge text on hover. You can use <strong>%%input%%<\/strong> or field keys such as <strong>%%email%%<\/strong>.<\/li>\n<li><strong>Hover Icon &#8211; <\/strong>Change the badge icon on hover by entering a Font Awesome icon class, such as <strong>fas fa-bacon<\/strong>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>All Widgets come as Widgets, Shortcodes, or Blocks. Learn more about our Super Duper Widgets. The UWP &gt; User Badge widget is used to display a user badge. In addition to the widget, you can use the [uwp_user_badge] shortcode to display the badge. Widget Options User ID &#8211; Leave blank to use the current user [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[20,5],"class_list":["post-104","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-core-widgets","gd_placecategory-extensions-features"],"_links":{"self":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/comments?post=104"}],"version-history":[{"count":0,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/104\/revisions"}],"wp:attachment":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/tags?post=104"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/categories?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}