{"id":2273,"date":"2026-10-20T08:29:35","date_gmt":"2026-10-20T07:29:35","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/set-list-view-as-default\/"},"modified":"2026-10-20T08:41:01","modified_gmt":"2026-10-20T07:41:01","slug":"set-list-view-as-default","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/set-list-view-as-default\/","title":{"rendered":"How to make list view the default on GeoDirectory search and category pages"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The default layout of the search results and category pages is set on the GD &gt; Loop block (or <code>&#091;gd_loop&#093;<\/code> shortcode) inside the page templates. GeoDirectory v1 had a setting for this. In the current version you change the Layout option on the loop itself.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to GeoDirectory &gt; Settings &gt; General &gt; Pages and note which pages are used as the Search Page and the Archive page.<\/li>\n\n\n\n<li>Edit the Search Page.<\/li>\n\n\n\n<li>Select the GD &gt; Loop block and set Layout to List view. If the page uses the shortcode, change it to <code>&#091;gd_loop layout=&quot;0&quot;&#093;<\/code>.<\/li>\n\n\n\n<li>Update the page.<\/li>\n\n\n\n<li>Do the same on the Archive page, which is used for category and post type pages.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The layout values are <code>0<\/code> for list view and <code>1<\/code> to <code>5<\/code> for a grid with that many columns. The default is <code>2<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why you may still see the old view<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Visitors can switch the view with the button in GD &gt; Loop Actions, and their browser remembers the choice. If you have switched the view yourself while testing, your browser keeps showing that view. Test in a private window to see what new visitors get.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To stop visitors changing the view, use the Hide layouts option on the GD &gt; Loop Actions block to remove the views you do not want offered.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you use a GD &gt; Listings block on a normal page, it has its own Layout setting too. See <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-loop\/\">GD &gt; Loop<\/a> for the other loop options.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The default layout of the search results and category pages is set on the GD &gt; Loop block (or &#091;gd_loop&#093; shortcode) inside the page templates. GeoDirectory v1 had a setting for this. In the current version you change the Layout option on the loop itself. The layout values are 0 for list view and 1 [&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-2273","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\/2273","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=2273"}],"version-history":[{"count":2,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2273\/revisions"}],"predecessor-version":[{"id":2718,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2273\/revisions\/2718"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2273"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2273"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}