{"id":42270,"date":"2023-10-04T14:38:29","date_gmt":"2023-10-04T14:38:29","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=42270"},"modified":"2024-06-21T09:14:59","modified_gmt":"2024-06-21T09:14:59","slug":"how-to-show-posts-in-listing-grid-based-on-geolocation","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-geolocation\/","title":{"rendered":"How to Show Posts in Listing Grid Based on Geolocation"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"build-a-query\">Build 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>Go 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>Fill in the <strong>Name <\/strong>field in the <strong>General Settings <\/strong>section.<\/p>\n\n\n\n<p>Select the desired <strong>Query Type<\/strong>. Among the options that work with Geo Search are: \u201cPosts Query,\u201d \u201cTerms Query,\u201d \u201cUsers Query,\u201d and \u201cCustom Content Type Query.\u201d<\/p>\n\n\n\n<p>Proceed to the next section now. If you&#8217;ve chosen the default \u201cPosts Query\u201d type, it will be called <strong>Post Query.<\/strong><\/p>\n\n\n\n<p>In the <strong>General <\/strong>tab, choose the <strong>Post Type<\/strong>, such as <em>JetEngine<\/em>\u2019s Custom Post Type or skip this step to work with posts of any type.<\/p>\n\n\n\n<p><strong>Post Status<\/strong> options allow specifying posts\u2019 status (published, drafts, etc.) if necessary.\u00a0<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/general-query-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/general-query-settings-1024x640.webp\" alt=\"general query settings\" class=\"wp-image-42272\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/general-query-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/general-query-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/general-query-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/general-query-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/general-query-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/general-query-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In the <strong>Geo Search<\/strong> tab, select a point on the map using the <strong>Select location<\/strong> field. Once the user opens the page, the map will be centered on this point.<\/p>\n\n\n\n<p>Complete the <strong>Address Field <\/strong>with a meta field value (<strong>Name\/ID <\/strong>in the meta field settings) created beforehand.<\/p>\n\n\n\n<p>Specify a radius in the <strong>Distance <\/strong>field for users to search around the center selected in the <strong>Select location <\/strong>field.<\/p>\n\n\n\n<p>Select the <strong>Units <\/strong>options for the map to display distances in either miles or kilometers.<\/p>\n\n\n\n<p>Press the \u201c<strong>Add Query<\/strong>\u201d button to save the result.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/geo-search-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/geo-search-settings-1024x640.webp\" alt=\"geo search settings\" class=\"wp-image-42273\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/geo-search-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/geo-search-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/geo-search-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/geo-search-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/geo-search-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/geo-search-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"customize-a-page\">Customize a 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>Head to the page where a listing is located or where you want to place it or create a new page by going to <strong><em>WordPress Dashboard > Pages <\/em><\/strong>and clicking the \u201c<strong>Add New<\/strong>\u201d button.\u00a0<\/p>\n\n\n\n<p>This tutorial describes editing a page with Elementor; however, you can recreate the same case in the Block Editor.<\/p>\n\n\n\n<p>Place the <strong>Listing Grid <\/strong>widget on the page. Select a <strong>Listing <\/strong>built earlier.<\/p>\n\n\n\n<p>Adjust the <strong>General <\/strong>settings according to your preferences.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-general-section.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-general-section-1024x640.webp\" alt=\"listing grid general section\" class=\"wp-image-42274\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-general-section-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-general-section-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-general-section-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-general-section-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-general-section-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-general-section.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Go to the <strong>Custom Query <\/strong>tab and activate the <strong>Use Custom Query <\/strong>toggle.<\/p>\n\n\n\n<p>Once the switcher is activated, choose the <strong>Custom Query <\/strong>built in the previous step.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-custom-query-section.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-custom-query-section-1024x640.webp\" alt=\"listing grid custom query section\" class=\"wp-image-42275\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-custom-query-section-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-custom-query-section-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-custom-query-section-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-custom-query-section-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-custom-query-section-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/listing-grid-custom-query-section.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Work on other settings if needed and adjust styling.\u00a0<\/p>\n\n\n\n<p>Once done, hit the \u201c<strong>Publish\/Update<\/strong>\u201d button to save the changes.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"check-result\">Check 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>Head to the front end of the edited page.\u00a0<\/p>\n\n\n\n<p>Now, the <strong>Listing Grid <\/strong>displays items located within the radius of the map center specified in the query settings.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/queried-result-on-the-front-end.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/queried-result-on-the-front-end-1024x640.webp\" alt=\"queried result on the front end\" class=\"wp-image-42276\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/queried-result-on-the-front-end-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/queried-result-on-the-front-end-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/queried-result-on-the-front-end-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/queried-result-on-the-front-end-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/queried-result-on-the-front-end-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/queried-result-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 order <em>JetEngine <\/em>listings based on geolocation on your WordPress website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From this tutorial, you will learn how to show posts in JetEngine\u2019s listings based on geolocation.<\/p>\n","protected":false},"author":9,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[394,405],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Show Posts in Listing Grid Based on Geolocation \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to display posts in the Listing Grid widget from the JetEngine plugin based on geolocation on your WordPress website.\" \/>\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\/how-to-show-posts-in-listing-grid-based-on-geolocation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Show Posts in Listing Grid Based on Geolocation \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to display posts in the Listing Grid widget from the JetEngine plugin based on geolocation on your WordPress website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-geolocation\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-21T09:14:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/general-query-settings-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=\"3 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\/how-to-show-posts-in-listing-grid-based-on-geolocation\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-geolocation\/\",\"name\":\"How to Show Posts in Listing Grid Based on Geolocation \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2023-10-04T14:38:29+00:00\",\"dateModified\":\"2024-06-21T09:14:59+00:00\",\"description\":\"Learn how to display posts in the Listing Grid widget from the JetEngine plugin based on geolocation on your WordPress website.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-geolocation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-geolocation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-geolocation\/#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 Show Posts in Listing Grid Based on Geolocation\"}]},{\"@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 Show Posts in Listing Grid Based on Geolocation \u2014 JetEngine | Crocoblock","description":"Learn how to display posts in the Listing Grid widget from the JetEngine plugin based on geolocation on your WordPress website.","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\/how-to-show-posts-in-listing-grid-based-on-geolocation\/","og_locale":"en_US","og_type":"article","og_title":"How to Show Posts in Listing Grid Based on Geolocation \u2014 JetEngine | Crocoblock","og_description":"Learn how to display posts in the Listing Grid widget from the JetEngine plugin based on geolocation on your WordPress website.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-geolocation\/","og_site_name":"Help Center","article_modified_time":"2024-06-21T09:14:59+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/10\/general-query-settings-1024x640.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-geolocation\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-geolocation\/","name":"How to Show Posts in Listing Grid Based on Geolocation \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2023-10-04T14:38:29+00:00","dateModified":"2024-06-21T09:14:59+00:00","description":"Learn how to display posts in the Listing Grid widget from the JetEngine plugin based on geolocation on your WordPress website.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-geolocation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-geolocation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-geolocation\/#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 Show Posts in Listing Grid Based on Geolocation"}]},{"@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\/42270"}],"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=42270"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=42270"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=42270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}