{"id":2641,"date":"2026-10-20T08:35:23","date_gmt":"2026-10-20T07:35:23","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/gd-listings-number-of-listings-and-layout\/"},"modified":"2026-10-20T08:40:20","modified_gmt":"2026-10-20T07:40:20","slug":"gd-listings-number-of-listings-and-layout","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-listings-number-of-listings-and-layout\/","title":{"rendered":"GD Listings shortcode: number of listings and what each listing shows"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If <code>&#091;gd_listings&#093;<\/code> always shows 5 listings whatever you set, check the parameter name. The number of listings is set with <code>post_limit<\/code>. The old <code>post_number<\/code> parameter is ignored, so the widget falls back to its default of 5.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">&#091;gd_listings post_type=&quot;gd_place&quot; category=&quot;1,3&quot; post_limit=&quot;4&quot; layout=&quot;2&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To get every parameter name right, build the shortcode with the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/shortcode-builder\/\">shortcode builder<\/a> or use the GD > Listings block, and open the advanced settings to see all options. The full list is in <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-listings\/\">GD > Listings<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Change what each listing shows<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Each listing in the list is drawn from the archive item template, the page selected at GeoDirectory > Settings > General > Pages > Archive item page. The default template has shortcodes for the image, badges, distance, rating, favorite button, business hours, extra fields and description. Edit that page and delete the parts you don&#8217;t want. For example, remove <code>&#091;gd_post_rating&#093;<\/code> for the stars and <code>&#091;gd_post_fav&#093;<\/code> for the favorite button.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That template is also used on your category and post type archive pages. To change only one GD > Listings, create a new page with just the elements you want. Then in the widget&#8217;s Card Design settings, set Archive Item Template Type to Page ID and pick your page in Archive Item Template Page. As a shortcode:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">&#091;gd_listings post_type=&quot;gd_place&quot; post_limit=&quot;4&quot; template_type=&quot;page&quot; tmpl_page=&quot;123&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace 123 with the ID of your template page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Shorten the description<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The description comes from <code>&#091;gd_post_content&#093;<\/code> in the archive item template. Its limit setting is a word count. For more options see <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/code-snippets\/gd-archive-item-change-the-length-of-the-text-shown-with-gd-loop-and-gd-listings\/\">Change the length of the text shown with GD Loop and GD Listings<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Turn off ratings for a post type<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To remove star ratings everywhere for a post type, go to Places > Settings > General, click Show Advanced and tick Disable ratings. Disable comments, just above it, turns off reviews completely.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If &#091;gd_listings&#093; always shows 5 listings whatever you set, check the parameter name. The number of listings is set with post_limit. The old post_number parameter is ignored, so the widget falls back to its default of 5. To get every parameter name right, build the shortcode with the shortcode builder or use the GD > [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,422],"class_list":["post-2641","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\/2641","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=2641"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2641\/revisions"}],"predecessor-version":[{"id":2798,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2641\/revisions\/2798"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2641"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2641"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}