{"id":49413,"date":"2025-09-25T11:58:56","date_gmt":"2025-09-25T11:58:56","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=49413"},"modified":"2025-09-25T11:58:58","modified_gmt":"2025-09-25T11:58:58","slug":"adding-pagination-to-listing-using-bolt","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/","title":{"rendered":"How to Add Pagination to the Listing via Bolt"},"content":{"rendered":"\n<p>By combining WordPress with Crocoblock\u2019s <em>JetEngine<\/em> plugin as the backend and <a href=\"https:\/\/bolt.new\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Bolt<\/a> as the frontend AI Builder, you can quickly create a fully functional directory-style website without using traditional page builders.<\/p>\n\n\n\n<p>In the <strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/building-listing-with-filters-using-bolt\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Build a Listing with Filters via Bolt<\/a><\/strong> tutorial, we demonstrate how to showcase <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-content-type\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Custom Content Type (CCT)<\/strong><\/a> items\u2014in our example, mugs\u2014in a dynamic listing enhanced with filters for material and price.<\/p>\n\n\n\n<p>In this guide, we take it a step further and show you how to add pagination to the listing by extending the AI Builder prompt.<\/p>\n\n\n\n<p>For additional details, you can check the <a href=\"https:\/\/crocoblock.com\/blog\/wordpress-ai-builders-and-wordpress-crocoblock-combo\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>WordPress and AI Builders Integration using Crocoblock: Bolt and Lovable Cases<\/strong><\/a> article.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"adding-a-pagination-via-prompt\">Adding a Pagination via Prompt<\/h2>\n\n\n\n<p>The <strong>CCT<\/strong> has built-in \u2018_limit\u2019 and \u2018_offset\u2019 parameters that should be referenced in the prompt.<\/p>\n\n\n\n<p>A new AI prompt should include three key points:<\/p>\n\n\n\n<ul>\n<li><strong>Number of items per page<\/strong>: Pass the \u2018_limit\u2019 parameter in the API request;<\/li>\n\n\n\n<li><strong>Parameter for changing pages<\/strong>: In our case, \u201c_offset\u2019. This should also be specified in the prompt.<\/li>\n\n\n\n<li><strong>The total number of items<\/strong>: This can be obtained from the API response headers. Typically, the Jet-Query-Total header is used; however, Jet-Query-Pages can also be used in some cases. Based on these values, the AI can calculate the total number of pages for pagination.<\/li>\n<\/ul>\n\n\n\n<p>We enter such a prompt to the Bolt text area:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Also, let's add pagination. You can retrieve the total results count from the API response header Jet-Query-Total. Also API supports the `_offset` parameter to change the page. Set 6 items per page using `_limit` API parameter.<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"checking-the-result\">Checking the Result<\/h2>\n\n\n\n<p>After that, the pagination was added to the listing on our generated website.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/09\/website-with-listing-and-pagination-created-with-Bolt-AI-builder.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/09\/website-with-listing-and-pagination-created-with-Bolt-AI-builder.webp\" alt=\"website with listing and pagination created with Bolt AI builder\" class=\"wp-image-49411\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/09\/website-with-listing-and-pagination-created-with-Bolt-AI-builder.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/09\/website-with-listing-and-pagination-created-with-Bolt-AI-builder-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/09\/website-with-listing-and-pagination-created-with-Bolt-AI-builder-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/09\/website-with-listing-and-pagination-created-with-Bolt-AI-builder-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/09\/website-with-listing-and-pagination-created-with-Bolt-AI-builder-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/09\/website-with-listing-and-pagination-created-with-Bolt-AI-builder-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>That\u2019s all. Now you know how to extend your WordPress listing with pagination using <em>JetEngine<\/em> and Bolt AI Builder.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Discover how to extend your WordPress listing with pagination using JetEngine and Bolt AI Builder.<\/p>\n","protected":false},"author":8,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[583],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add Pagination to the Listing via Bolt \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Discover how to extend your WordPress listing with pagination using JetEngine and Bolt AI Builder. Follow this guide to configure REST API parameters and improve navigation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Pagination to the Listing via Bolt \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Discover how to extend your WordPress listing with pagination using JetEngine and Bolt AI Builder. Follow this guide to configure REST API parameters and improve navigation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-25T11:58:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/09\/website-with-listing-and-pagination-created-with-Bolt-AI-builder.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/\",\"name\":\"How to Add Pagination to the Listing via Bolt \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2025-09-25T11:58:56+00:00\",\"dateModified\":\"2025-09-25T11:58:58+00:00\",\"description\":\"Discover how to extend your WordPress listing with pagination using JetEngine and Bolt AI Builder. Follow this guide to configure REST API parameters and improve navigation.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Add Pagination to the Listing via Bolt\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add Pagination to the Listing via Bolt \u2014 JetEngine | Crocoblock","description":"Discover how to extend your WordPress listing with pagination using JetEngine and Bolt AI Builder. Follow this guide to configure REST API parameters and improve navigation.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Pagination to the Listing via Bolt \u2014 JetEngine | Crocoblock","og_description":"Discover how to extend your WordPress listing with pagination using JetEngine and Bolt AI Builder. Follow this guide to configure REST API parameters and improve navigation.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/","og_site_name":"Help Center","article_modified_time":"2025-09-25T11:58:58+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/09\/website-with-listing-and-pagination-created-with-Bolt-AI-builder.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/","name":"How to Add Pagination to the Listing via Bolt \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2025-09-25T11:58:56+00:00","dateModified":"2025-09-25T11:58:58+00:00","description":"Discover how to extend your WordPress listing with pagination using JetEngine and Bolt AI Builder. Follow this guide to configure REST API parameters and improve navigation.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/adding-pagination-to-listing-using-bolt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/crocoblock.com\/knowledge-base\/articles\/"},{"@type":"ListItem","position":3,"name":"How to Add Pagination to the Listing via Bolt"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article\/49413"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/8"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=49413"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=49413"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=49413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}