{"id":767,"date":"2026-10-20T09:03:28","date_gmt":"2026-10-20T08:03:28","guid":{"rendered":"https:\/\/userswp.io\/documentation\/article\/geodirectory-listings-layout-in-userswp-profiles\/"},"modified":"2026-10-20T09:03:28","modified_gmt":"2026-10-20T08:03:28","slug":"geodirectory-listings-layout-in-userswp-profiles","status":"publish","type":"gd_place","link":"https:\/\/userswp.io\/documentation\/article\/geodirectory-extension\/geodirectory-listings-layout-in-userswp-profiles\/","title":{"rendered":"How to change how GeoDirectory listings look in UsersWP profile tabs"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The Listings and Favorites tabs that UsersWP adds to profiles use GeoDirectory&#8217;s archive item template, the same card layout as your category and search pages. To change what each listing shows, such as the address, phone number or rating, edit that template.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Edit the archive item template<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to GeoDirectory > Settings > General > Pages and note the page set as Archive item page.<\/li>\n\n\n\n<li>Edit that page. It is built from GeoDirectory blocks or shortcodes such as GD > Post Title, GD > Post Address and GD > Post Meta.<\/li>\n\n\n\n<li>Add the fields you want, remove the ones you do not, and update the page.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If a post type has its own archive item page, set in that post type&#8217;s settings under Template Page Settings, the profile tab for that post type uses it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This applies with the Bootstrap design style, which is the default. If Default Design Style under UsersWP > General > Developer is set to Legacy (non-bootstrap), the tabs use an older UsersWP layout that shows the title and a short excerpt.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A different layout only on profiles<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To give profiles their own card layout, add a custom profile tab that uses the GD > Listings shortcode with a separate template page.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a new page and build the card layout you want, the same way as the archive item page. Note its page ID.<\/li>\n\n\n\n<li>Go to UsersWP > Form Builder > Profile Tabs and add a Shortcode tab.<\/li>\n\n\n\n<li>Use a shortcode like the ones below, with your own post type and page ID.<\/li>\n\n\n\n<li>Remove the default Listings or Favorites tab if your new tab replaces it.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&#091;gd_listings post_type=&quot;gd_place&quot; post_author=&quot;current_author&quot; template_type=&quot;page&quot; tmpl_page=&quot;123&quot; post_limit=&quot;10&quot;&#093;\n\n&#091;gd_listings post_type=&quot;gd_place&quot; show_favorites_only=&quot;1&quot; favorites_by_user=&quot;current_author&quot; template_type=&quot;page&quot; tmpl_page=&quot;123&quot; post_limit=&quot;10&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The first shows the listings owned by the user whose profile is being viewed. The second shows that user&#8217;s favorites. On a UsersWP profile page, <code>current_author<\/code> means the profile owner.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More on profile tabs: <a href=\"https:\/\/userswp.io\/documentation\/article\/how-tos\/how-to-add-a-custom-tab-to-profiles\/\">How to Add a Custom Tab to Profiles?<\/a> and <a href=\"https:\/\/userswp.io\/documentation\/article\/geodirectory-extension\/adding-geodirectory-listings-to-the-profile-of-your-users\/\">Adding GeoDirectory Listings to the Profile of your Users<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Listings and Favorites tabs that UsersWP adds to profiles use GeoDirectory&#8217;s archive item template, the same card layout as your category and search pages. To change what each listing shows, such as the address, phone number or rating, edit that template. Edit the archive item template If a post type has its own archive [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[5,15],"class_list":["post-767","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-geodirectory-extension"],"_links":{"self":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/767","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/comments?post=767"}],"version-history":[{"count":0,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/767\/revisions"}],"wp:attachment":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/media?parent=767"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/tags?post=767"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/categories?post=767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}