{"id":2735,"date":"2026-10-20T08:36:21","date_gmt":"2026-10-20T07:36:21","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-to-show-users-their-favorite-listings\/"},"modified":"2026-10-20T08:39:00","modified_gmt":"2026-10-20T07:39:00","slug":"how-to-show-users-their-favorite-listings","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/how-to-show-users-their-favorite-listings\/","title":{"rendered":"How to show users their favorite listings"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When a logged-in user clicks the favorite button on a listing, GeoDirectory saves it to their account. You can show them their saved listings in three ways.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GD &gt; Dashboard<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the GD &gt; Dashboard block, widget or <code>&#091;gd_dashboard&#093;<\/code> shortcode to a sidebar or page. Logged-in users see links to add a listing, to their favorites and to their own listings, one link per post type. The favorites link opens a page with their favorite listings for that post type.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These pages are built on the WordPress author archive. If the favorites link sends users to the home page, check whether an SEO plugin has disabled author archives, as that redirects them to the home page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GD &gt; Listings filtered to favorites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To show favorites directly on a page, add GD &gt; Listings and, in its Filters settings, tick &#8220;Show favorited by user?&#8221;. Leave &#8220;Favorited by user&#8221; empty to show the favorites of whoever is logged in. As a shortcode:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&#091;gd_listings post_type=&quot;gd_place&quot; show_favorites_only=&quot;1&quot; favorites_by_user=&quot;current_user&quot; post_limit=&quot;12&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Put this on a page only logged-in users visit, as there is nothing to show to visitors who are logged out.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A Favorites tab in UsersWP profiles<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">UsersWP is our free profile plugin. When GeoDirectory is active, it can add Listings, Reviews and Favorites tabs to each user&#8217;s profile. Choose which post types get a Favorites tab in UsersWP &gt; Settings &gt; Addons &gt; GeoDirectory. The same screen can point the favorites link in GD &gt; Dashboard to the profile tab.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The favorite button itself is the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-post-favorite\/\">GD &gt; Post Favorite<\/a> widget. For the dashboard options, see <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-dashboard\/\">GD &gt; Dashboard<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When a logged-in user clicks the favorite button on a listing, GeoDirectory saves it to their account. You can show them their saved listings in three ways. GD &gt; Dashboard Add the GD &gt; Dashboard block, widget or &#091;gd_dashboard&#093; shortcode to a sidebar or page. Logged-in users see links to add a listing, to their [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,432],"class_list":["post-2735","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2735","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"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=2735"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2735\/revisions"}],"predecessor-version":[{"id":2845,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2735\/revisions\/2845"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2735"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2735"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}