{"id":2299,"date":"2026-10-20T08:30:40","date_gmt":"2026-10-20T07:30:40","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/add-pagination-to-listings\/"},"modified":"2026-10-20T08:39:39","modified_gmt":"2026-10-20T07:39:39","slug":"add-pagination-to-listings","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/add-pagination-to-listings\/","title":{"rendered":"How to add pagination to GeoDirectory listings"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">How you add pagination depends on which element shows the listings: GD &gt; Listings on a normal page, or GD &gt; Loop on category, search and post type pages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GD &gt; Listings on any page<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GD &gt; Listings has its own pagination. In the element&#8217;s settings, turn on the Show pagination option and set Posts to show to the number of listings you want on each page. With shortcodes, add <code>with_pagination=&quot;1&quot;<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-text\">&#091;gd_listings post_type=&quot;gd_place&quot; post_limit=&quot;10&quot; with_pagination=&quot;1&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once pagination is on, you can also choose to show it at the top of the list (<code>top_pagination=&quot;1&quot;<\/code>), at the bottom (on by default) or both, and add a line such as &#8220;Showing listings 1-10 of 52&#8221; with the advance pagination info option. Pagination is switched off when GD &gt; Listings is shown as a carousel.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Category, search and post type pages<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These pages are built from the Archive page template with GD &gt; Loop and GD &gt; Loop Paging. GD &gt; Loop Paging only pages through GD &gt; Loop, so adding <code>&#091;gd_loop_paging&#093;<\/code> under <code>&#091;gd_listings&#093;<\/code> on a normal page does nothing. Use the GD &gt; Listings options above there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To show the page numbers above the results as well as below them, edit the Archive page (GeoDirectory &gt; Settings &gt; General &gt; Pages) and add a second GD &gt; Loop Paging above GD &gt; Loop. Its Show Advanced pagination option adds the &#8220;Showing listings x-y of z&#8221; line. See <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-loop-paging\/\">GD &gt; Loop Paging<\/a>, and <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/builders\/changing-the-number-of-listings-shown-on-archive-and-search-pages\/\">Changing the number of listings shown on Archive and Search pages<\/a> to change how many appear on each page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How you add pagination depends on which element shows the listings: GD &gt; Listings on a normal page, or GD &gt; Loop on category, search and post type pages. GD &gt; Listings on any page GD &gt; Listings has its own pagination. In the element&#8217;s settings, turn on the Show pagination option and set Posts [&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-2299","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\/2299","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=2299"}],"version-history":[{"count":2,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2299\/revisions"}],"predecessor-version":[{"id":2608,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2299\/revisions\/2608"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2299"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2299"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}