{"id":50983,"date":"2026-02-26T10:45:30","date_gmt":"2026-02-26T10:45:30","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=50983"},"modified":"2026-02-26T10:45:32","modified_gmt":"2026-02-26T10:45:32","slug":"getting-min-and-max-values-for-range-filter-from-query","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/getting-min-and-max-values-for-range-filter-from-query\/","title":{"rendered":"How to Get Min and Max Values for a Range Filter From a Query"},"content":{"rendered":"\n<p>In this guide, let\u2019s check how to adjust a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-create-range-filter\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Range Filter<\/strong><\/a><strong> <\/strong>that retrieves minimum and maximum price values from products returned by a query.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-a-snippet\">Add a Snippet<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Go to <strong><em>WordPress Dashboard &gt; Snippets &gt; Add New<\/em><\/strong>.<\/p>\n\n\n\n<p>Name a snippet. For example, we name it \u201cJetEngine Query Source for Range Filter\u201d.<\/p>\n\n\n\n<p>Paste the following snippet into the <strong>Snippet Content Area<\/strong>:<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/Crocoblock\/6c5260177738f250c682d07f05c98a7e.js\"><\/script>\n\n\n\n<p>This snippet adds a new callback that allows the <strong>Range Filter <\/strong>to retrieve minimum and maximum values dynamically from a <em>JetEngine <\/em>query.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/jetengine-query-source-snippet.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/jetengine-query-source-snippet-1024x640.webp\" alt=\"jetengine query source snippet\" class=\"wp-image-50984\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/jetengine-query-source-snippet-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/jetengine-query-source-snippet-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/jetengine-query-source-snippet-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/jetengine-query-source-snippet-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/jetengine-query-source-snippet-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/jetengine-query-source-snippet.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Click the \u201c<strong>Save and Activate<\/strong>\u201d button.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-a-query\">Create a Query<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Navigate to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Query Builder <\/em><\/strong>and press \u201c<strong>Add New<\/strong>\u201d.<\/p>\n\n\n\n<p>Enter a query <strong>Name <\/strong>and select the <strong>Query Type<\/strong>. In this example, we leave it to \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/query-builder-posts-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">Posts Query<\/a>.\u201d<\/p>\n\n\n\n<p>Also, specify the <strong>Custom Query ID <\/strong>that will connect the query, filter, and provider. For instance, we paste the \u201cprice-range\u201d value.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/business-books-query-settings-in-query-builder.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/business-books-query-settings-in-query-builder-1024x640.webp\" alt=\"business books query settings in query builder\" class=\"wp-image-50985\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/business-books-query-settings-in-query-builder-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/business-books-query-settings-in-query-builder-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/business-books-query-settings-in-query-builder-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/business-books-query-settings-in-query-builder-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/business-books-query-settings-in-query-builder-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/business-books-query-settings-in-query-builder.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Scroll down to the <strong>Posts Query <\/strong>section and select the \u201cProducts\u201d <strong>Post Type<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/general-settings-tab-of-the-posts-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/general-settings-tab-of-the-posts-query-1024x640.webp\" alt=\"general settings tab of the posts query\" class=\"wp-image-50986\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/general-settings-tab-of-the-posts-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/general-settings-tab-of-the-posts-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/general-settings-tab-of-the-posts-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/general-settings-tab-of-the-posts-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/general-settings-tab-of-the-posts-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/general-settings-tab-of-the-posts-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Next, open the <strong>Tax Query <\/strong>tab and press the \u201c<strong>Add new<\/strong>\u201d button.<\/p>\n\n\n\n<p>In the <strong>Taxonomy <\/strong>field, we select the \u201cProduct categories\u201d option. Also, we select the \u201cSlug\u201d option as the <strong>Field<\/strong>, and complete the <strong>Terms <\/strong>field with the \u201cbusiness\u201d value.<\/p>\n\n\n\n<p>These settings limit the query results to products from the specified category. This step is optional and used here only as an example. You can configure any <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-taxonomy-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">taxonomy<\/a> or skip this step depending on your use case.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/tax-query-settings-tab-of-the-posts-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/tax-query-settings-tab-of-the-posts-query-1024x640.webp\" alt=\"tax query settings tab of the posts query\" class=\"wp-image-50987\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/tax-query-settings-tab-of-the-posts-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/tax-query-settings-tab-of-the-posts-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/tax-query-settings-tab-of-the-posts-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/tax-query-settings-tab-of-the-posts-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/tax-query-settings-tab-of-the-posts-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/tax-query-settings-tab-of-the-posts-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Press the \u201c<strong>Add Query<\/strong>\u201d button to save the query.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"build-a-filter\">Build a Filter<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Now, go to <strong><em>WordPress Dashboard &gt; Smart Filters &gt; Add New <\/em><\/strong>and enter a <strong>Filter Name<\/strong>.<\/p>\n\n\n\n<p>In the <strong>Filter Settings <\/strong>section, select the \u201cRange\u201d <strong>Filter Type<\/strong>.<\/p>\n\n\n\n<p>Open the <strong>Get min\/max dynamically <\/strong>dropdown and select the \u201cGet from JetEngine Query\u201d option that appeared after activating the code snippet.<\/p>\n\n\n\n<p>Once selected, the <strong>Select Query <\/strong>dropdown appears. Choose the query you built earlier.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-settings-1024x640.webp\" alt=\"range filter settings\" class=\"wp-image-50988\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Scroll down to the <strong>Query Variable <\/strong>field and paste the \u201c_price\u201d value there.<\/p>\n\n\n\n<p>The \u201c_price\u201d value is a <em>WooCommerce <\/em>meta key that stores product prices in the database. The <strong>Range Filter <\/strong>uses this meta field to determine the products&#8217; minimum and maximum prices. If you need to filter by another numeric field (for example, a custom meta field), specify its meta key instead.<\/p>\n\n\n\n<p>Also, complete the <strong>Filter Labels <\/strong>section.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/query-variable-and-filter-labels-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/query-variable-and-filter-labels-settings-1024x640.webp\" alt=\"query variable and filter labels settings\" class=\"wp-image-50989\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/query-variable-and-filter-labels-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/query-variable-and-filter-labels-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/query-variable-and-filter-labels-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/query-variable-and-filter-labels-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/query-variable-and-filter-labels-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/query-variable-and-filter-labels-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Click the \u201c<strong>Update<\/strong>\u201d button to save the filter.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-content-to-the-page\">Add Content to the Page<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Open the editor where you want to place the content (Elementor, Gutenberg, or Blocks). In this example, we use Elementor.<\/p>\n\n\n\n<p>Add a <strong>Range Filter <\/strong>widget to the page, then adjust it.&nbsp;<\/p>\n\n\n\n<p>In the <strong>Select filter <\/strong>field, pick the filter you built.<\/p>\n\n\n\n<p>In the <strong>This filter for <\/strong>dropdown, select the \u201cJetEngine\u201d option.<\/p>\n\n\n\n<p>Also, complete the <strong>Query ID <\/strong>field with a unique value that links the filter, query, and provider. For example, \u201cprice-range.\u201d<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/content-settings-of-the-range-filter.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/content-settings-of-the-range-filter-1024x640.webp\" alt=\"content settings of the range filter\" class=\"wp-image-50990\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/content-settings-of-the-range-filter-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/content-settings-of-the-range-filter-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/content-settings-of-the-range-filter-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/content-settings-of-the-range-filter-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/content-settings-of-the-range-filter-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/content-settings-of-the-range-filter.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Add a provider widget to the page. In this example, it\u2019s <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Grid<\/strong><\/a>.<\/p>\n\n\n\n<p>Select the <strong>Listing <\/strong>created beforehand and adjust other settings on the <strong>General <\/strong>tab if needed. For example, we change the <strong>Column Number <\/strong>to \u201c1.\u201d<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-general-settings-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-general-settings-in-elementor-1024x640.webp\" alt=\"listing grid general settings in elementor\" class=\"wp-image-50991\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-general-settings-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-general-settings-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-general-settings-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-general-settings-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-general-settings-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-general-settings-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Open the <strong>Custom Query <\/strong>tab and enable the <strong>Use Custom Query <\/strong>toggle.<\/p>\n\n\n\n<p>Select the built query in the <strong>Custom Query <\/strong>dropdown field.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-custom-query-settings-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-custom-query-settings-in-elementor-1024x640.webp\" alt=\"listing grid custom query settings in elementor\" class=\"wp-image-50992\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-custom-query-settings-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-custom-query-settings-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-custom-query-settings-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-custom-query-settings-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-custom-query-settings-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-custom-query-settings-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Also, switch to the <strong>Advanced <\/strong>tab and enter the same ID you used in the <strong>Range Filter <\/strong>in the <strong>CSS ID <\/strong>field. In our case, \u201cprice-range.\u201d<\/p>\n\n\n\n<p>Publish the page when ready.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-layout-settings-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-layout-settings-in-elementor-1024x640.webp\" alt=\"listing grid layout settings in elementor\" class=\"wp-image-50993\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-layout-settings-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-layout-settings-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-layout-settings-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-layout-settings-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-layout-settings-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-grid-layout-settings-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"check-the-result\">Check the Result<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Open the page on the frontend.\u00a0<\/p>\n\n\n\n<p>Now, the <strong>Range Filter <\/strong>and <strong>Listing Grid <\/strong>widgets are displayed on the page.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-and-listing-grid-on-the-frontend.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-and-listing-grid-on-the-frontend-1024x640.webp\" alt=\"range filter and listing grid on the frontend\" class=\"wp-image-50994\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-and-listing-grid-on-the-frontend-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-and-listing-grid-on-the-frontend-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-and-listing-grid-on-the-frontend-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-and-listing-grid-on-the-frontend-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-and-listing-grid-on-the-frontend-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/range-filter-and-listing-grid-on-the-frontend.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Adjust the <strong>Range Filter <\/strong>values to see whether the <strong>Listing Grid<\/strong> content changes accordingly.<\/p>\n\n\n\n<p>If configured correctly, the <strong>Listing Grid<\/strong> displays products within the specified price range.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-filtered-by-the-range-filter-on-the-front-end.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-filtered-by-the-range-filter-on-the-front-end-1024x640.webp\" alt=\"listing filtered by the range filter on the front end\" class=\"wp-image-50995\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-filtered-by-the-range-filter-on-the-front-end-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-filtered-by-the-range-filter-on-the-front-end-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-filtered-by-the-range-filter-on-the-front-end-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-filtered-by-the-range-filter-on-the-front-end-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-filtered-by-the-range-filter-on-the-front-end-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/listing-filtered-by-the-range-filter-on-the-front-end.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<p>That\u2019s all; now you know how to get minimum and maximum values for the <em>JetSmartFilters<\/em>\u2019 <strong>Range Filter <\/strong>from a <em>JetEngine<\/em>\u2019s <strong>Query <\/strong>on your WordPress website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to build a Range Filter whose minimum and maximum values are dynamically retrieved from a JetEngine query.<\/p>\n","protected":false},"author":9,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[419,405],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Get Min and Max Values for Range Filter from Query \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to get minimum and maximum values for the Range Filter from the query with the help of the JetEngine and JetSmatFilters plugins for WordPress.\" \/>\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\/getting-min-and-max-values-for-range-filter-from-query\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Get Min and Max Values for Range Filter from Query \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to get minimum and maximum values for the Range Filter from the query with the help of the JetEngine and JetSmatFilters plugins for WordPress.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/getting-min-and-max-values-for-range-filter-from-query\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T10:45:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/jetengine-query-source-snippet-1024x640.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=\"6 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\/getting-min-and-max-values-for-range-filter-from-query\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/getting-min-and-max-values-for-range-filter-from-query\/\",\"name\":\"How to Get Min and Max Values for Range Filter from Query \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2026-02-26T10:45:30+00:00\",\"dateModified\":\"2026-02-26T10:45:32+00:00\",\"description\":\"Learn how to get minimum and maximum values for the Range Filter from the query with the help of the JetEngine and JetSmatFilters plugins for WordPress.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/getting-min-and-max-values-for-range-filter-from-query\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/getting-min-and-max-values-for-range-filter-from-query\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/getting-min-and-max-values-for-range-filter-from-query\/#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 Get Min and Max Values for a Range Filter From a Query\"}]},{\"@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 Get Min and Max Values for Range Filter from Query \u2014 JetEngine | Crocoblock","description":"Learn how to get minimum and maximum values for the Range Filter from the query with the help of the JetEngine and JetSmatFilters plugins for WordPress.","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\/getting-min-and-max-values-for-range-filter-from-query\/","og_locale":"en_US","og_type":"article","og_title":"How to Get Min and Max Values for Range Filter from Query \u2014 JetEngine | Crocoblock","og_description":"Learn how to get minimum and maximum values for the Range Filter from the query with the help of the JetEngine and JetSmatFilters plugins for WordPress.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/getting-min-and-max-values-for-range-filter-from-query\/","og_site_name":"Help Center","article_modified_time":"2026-02-26T10:45:32+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/02\/jetengine-query-source-snippet-1024x640.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/getting-min-and-max-values-for-range-filter-from-query\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/getting-min-and-max-values-for-range-filter-from-query\/","name":"How to Get Min and Max Values for Range Filter from Query \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2026-02-26T10:45:30+00:00","dateModified":"2026-02-26T10:45:32+00:00","description":"Learn how to get minimum and maximum values for the Range Filter from the query with the help of the JetEngine and JetSmatFilters plugins for WordPress.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/getting-min-and-max-values-for-range-filter-from-query\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/getting-min-and-max-values-for-range-filter-from-query\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/getting-min-and-max-values-for-range-filter-from-query\/#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 Get Min and Max Values for a Range Filter From a Query"}]},{"@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\/50983"}],"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\/9"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=50983"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=50983"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=50983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}