{"id":829,"date":"2025-03-24T14:27:47","date_gmt":"2025-03-24T14:27:47","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/gd-post-favorite\/"},"modified":"2025-04-03T15:24:08","modified_gmt":"2025-04-03T14:24:08","slug":"gd-post-favorite","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-post-favorite\/","title":{"rendered":"GD > Post Favorite"},"content":{"rendered":"<section class=\"alert alert-success dashed\">\n\t All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/what-makes-geodirectory-widgets-special\/\">Super Duper Widgets<\/a>.<\/section>\n<p>\n\t The <strong><em>Post Favorite<\/em><\/strong>&nbsp;widget shows a link with an icon where <strong>users can favorite or unfavourite listings<\/strong>.<\/p>\n<p> <strong>Users must be logged<\/strong> in to favorite, <strong>logged-out users will be taken to the login page<\/strong>.<\/p>\n<h2>Widget Options<\/h2>\n<section class=\"alert alert-info\">\n\t Some settings for this widget are advanced settings, reveal them by clicking the button next to save.<\/section>\n<ul>\n<li><strong>Show<\/strong> &#8211; What to show in the output, options are;\n<ul>\n<li><strong>All<\/strong> &#8211; Both the icon and the text.<\/li>\n<li><strong>Icon<\/strong>&nbsp; &#8211; Just the icon.<\/li>\n<li><strong>Text <\/strong>&#8211; Just the text.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Alignment <\/strong>&#8211;&nbsp;How the item should be positioned on the page.<\/li>\n<li><strong>Hide item on view<\/strong> &#8211; This option can hide the whole output when viewed in a post loop grid view on under.<\/li>\n<li><strong>Hide secondary info on view<\/strong> &#8211;&nbsp;You can set at what view the secondary info such as label will become hidden when this is used in the post loop archive item template.<\/li>\n<\/ul>\n<h2>Example Output<\/h2>\n<p>\n\tExamples with both the icon and text<\/p>\n<p>\n\t<img width=\"128\" height=\"42\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-XhKMUO6xmR.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/p>\n<p>\n\t<img width=\"133\" height=\"38\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-SGVOOAAOB6.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/p>\n<p>\n\tExample with just icon:<\/p>\n<p>\n\t<img width=\"614\" height=\"346\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-gYhaEGhEHU.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-gYhaEGhEHU.png 614w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-gYhaEGhEHU-300x169.png 300w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our Super Duper Widgets. The Post Favorite&nbsp;widget shows a link with an icon where users can favorite or unfavourite listings. Users must be logged in to favorite, logged-out users will be taken to the login page. Widget Options Some settings for this widget are [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,422],"class_list":["post-829","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-core-widgets"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=829"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/829\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=829"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=829"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}