{"id":30166,"date":"2022-11-04T21:15:59","date_gmt":"2022-11-04T21:15:59","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-set-geo-search-based-on-user-geolocation\/"},"modified":"2025-03-19T11:17:33","modified_gmt":"2025-03-19T11:17:33","slug":"how-to-set-geo-search-based-on-user-geolocation","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-geolocation\/","title":{"rendered":"How to Set Geo Search Based on User Geolocation"},"content":{"rendered":"\n<p>This feature for WordPress shows posts, terms, users, or <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-content-type\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Custom Content Types<\/strong> (<strong>CCT<\/strong>)<\/a> items within a given location radius of the users who visited the site if they allow sharing geolocation. You can set it via the <em>JetEngine <\/em><strong>Query Builder<\/strong> tool and <em>JetSmartFilters <\/em><strong>User Geolocation<\/strong> widget\/block.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"activate-a-maps-listings-module\">Activate a Maps Listings Module<\/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>Initially, make sure that you have activated the <strong>Maps Listings <\/strong>module. Otherwise, some of the setting options will not be available.&nbsp;<\/p>\n\n\n\n<p>This module can be activated by following the <strong><em>WordPress Dashboard &gt; JetEngine &gt; JetEngine <\/em><\/strong>path and opening the <strong>Modules <\/strong>tab. Then, enable the <strong>Maps Listings <\/strong>toggle and press the \u201c<strong>Save<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/jetengine-modules-tab.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/jetengine-modules-tab-1024x640.webp\" alt=\"jetengine modules tab\" class=\"wp-image-42996\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/jetengine-modules-tab-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/jetengine-modules-tab-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/jetengine-modules-tab-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/jetengine-modules-tab-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/jetengine-modules-tab-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/jetengine-modules-tab.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\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 the<strong><em> WordPress Dashboard &gt; JetEngine &gt; Query Builder <\/em><\/strong>tab and hit the \u201c<strong>Add New<\/strong>\u201d<strong> <\/strong>tab.<\/p>\n\n\n\n<p>In the <strong>General Settings<\/strong>, type the query <strong>Name <\/strong>value. In the <strong>Query Type <\/strong>field<strong>, <\/strong>you can select \u201cPosts Query,\u201d \u201cTerms Query,\u201d \u201cUsers Query,\u201d or \u201cCustom Content Type Query\u201d according to the object that you want to filter. These query types support the geo search.<\/p>\n\n\n\n<p>After we selected the \u201cPosts Query\u201d <strong>Query Type<\/strong>, in the following <strong>General<\/strong> section, we filled in the <strong>Post Type <\/strong>and the <strong>Post Status<\/strong> fields.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/general-tab-in-query-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/general-tab-in-query-settings-1024x640.webp\" alt=\"general tab in query settings\" class=\"wp-image-42997\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/general-tab-in-query-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/general-tab-in-query-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/general-tab-in-query-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/general-tab-in-query-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/general-tab-in-query-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/general-tab-in-query-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Open the <strong>Geo Search <\/strong>tab to adjust such 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\/12\/geo-search-tab-in-query-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/geo-search-tab-in-query-settings-1024x640.webp\" alt=\"geo search tab in query settings\" class=\"wp-image-42998\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/geo-search-tab-in-query-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/geo-search-tab-in-query-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/geo-search-tab-in-query-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/geo-search-tab-in-query-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/geo-search-tab-in-query-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/geo-search-tab-in-query-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<ul>\n<li><strong>Select <\/strong><strong>l<\/strong><strong>ocation<\/strong> \u2014 select the point on the map, and it will be the center of the query radius if users don\u2019t allow access to their geolocation;<\/li>\n\n\n\n<li><strong>Address Field<\/strong> \u2014 enter the name of the post, term, user, or <strong>CCT <\/strong>meta fields with the address. Here, you can specify the same fields as in the <strong>Meta fields to preload<\/strong> option in the <strong>Maps Settings<\/strong> (without a prefix, as the query type is already selected in advance), a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#map\" target=\"_blank\" rel=\"noreferrer noopener\">field of the \u201cMap\u201d type<\/a>, or comma-separated fields in which latitude and longitude are stored (in separate fields);<\/li>\n\n\n\n<li><strong>Distance <\/strong>\u2014 enter the desired radius for the search results;<\/li>\n\n\n\n<li><strong>Units <\/strong>\u2014 select the measurement units: \u201cKilometers\u201d or \u201cMiles.\u201d<\/li>\n<\/ul>\n\n\n\n<p>When you finish, push the <strong>\u201cAdd\/Update Query\u201d <\/strong>button.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-the-query-to-the-map-listing\">Add the Query to the Map Listing<\/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>Move to the\u00a0Elementor\/Block Editor page with the <strong>Map Listing<\/strong> widget or block and click to edit it.<\/p>\n\n\n\n<p>Without a query, the listing shows the entire map with all objects.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-general-section-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-general-section-in-elementor-1024x640.webp\" alt=\"map listing general section in elementor\" class=\"wp-image-42999\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-general-section-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-general-section-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-general-section-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-general-section-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-general-section-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-general-section-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>If you work with the Elementor editor, open the <strong>Map Listing <\/strong>widget, proceed to the <strong>Custom Query<\/strong> tab, enable the <strong>Use Custom Query <\/strong>toggle, and select the <strong>Custom Query<\/strong> name for the map from the drop-down list.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-elementor-1024x640.webp\" alt=\"map listing custom query tab in elementor\" class=\"wp-image-43000\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>The <strong>Map Listing<\/strong> block has the same settings in the Gutenberg editor.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-gutenberg.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-gutenberg-1024x640.webp\" alt=\"map listing custom query tab in gutenberg\" class=\"wp-image-43001\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-gutenberg-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-gutenberg-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-gutenberg-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-gutenberg-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-gutenberg-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-custom-query-tab-in-gutenberg.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>With the query, the <strong>Map Listing<\/strong> shows locations according to the static point in the center of the defined radius.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-on-the-front-end.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-on-the-front-end-1024x640.webp\" alt=\"map listing on the front end\" class=\"wp-image-43002\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-on-the-front-end-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-on-the-front-end-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-on-the-front-end-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-on-the-front-end-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-on-the-front-end-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/map-listing-on-the-front-end.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-the-user-geolocation-filter\">Create the User Geolocation 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>Go to the <strong><em>WordPress Dashboard &gt; Smart Filters &gt; Add New <\/em><\/strong>tab.<\/p>\n\n\n\n<p>Type the <strong>Filter Name<\/strong>, select the \u201cUser Geolocation\u201d <strong>Filter Type<\/strong>, and complete the <strong>Field Label <\/strong>and <strong>Active Field Label<\/strong> fields.<\/p>\n\n\n\n<p>Then, press the \u201c<strong>Update<\/strong>\u201d<strong> <\/strong>button.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-settings-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-settings-1-1024x640.webp\" alt=\"user geolocation filter settings\" class=\"wp-image-43003\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-settings-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-settings-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-settings-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-settings-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-settings-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-settings-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Place the <strong>User Geolocation <\/strong>widget or block onto the page containing <strong>Map Listing<\/strong>.<\/p>\n\n\n\n<p>Select the newly created filter in the corresponding field and pick the \u201cJetEngine Maps\u201d option in the <strong>This filter for <\/strong>field.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-widget-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-widget-in-elementor-1024x640.webp\" alt=\"user geolocation filter widget in elementor\" class=\"wp-image-43004\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-widget-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-widget-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-widget-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-widget-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-widget-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-widget-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In the Gutenberg editor, the settings are the same.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-in-gutenberg.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-in-gutenberg-1024x640.webp\" alt=\"user geolocation filter in gutenberg\" class=\"wp-image-43005\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-in-gutenberg-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-in-gutenberg-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-in-gutenberg-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-in-gutenberg-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-in-gutenberg-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-geolocation-filter-in-gutenberg.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-results\">Check the Results<\/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>After finishing, update the page and open it on the front end.<\/p>\n\n\n\n<p>All users visiting the page with the filter for the first time will see the notification asking permission to access their geolocation.<\/p>\n\n\n\n<p>Users who click the \u201c<strong>Block<\/strong>\u201d button will see the results around the point selected in the query settings, as we showed in the second step.<\/p>\n\n\n\n<p>If users hit the \u201c<strong>Allow<\/strong>\u201d<strong> <\/strong>button, the objects on the map will be filtered depending on their location.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-location-result.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-location-result-1024x640.webp\" alt=\"user geolocation result\" class=\"wp-image-43006\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-location-result-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-location-result-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-location-result-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-location-result-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-location-result-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/user-location-result.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 set the static point on the map with the <em>JetEngine <\/em><strong>Query Builder<\/strong> and geo search based on user geolocation with the <em>JetSmartFilters <\/em>plugin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to set geo search on the WordPress website based on User geolocation via the JetEngine Query Builder tool and the User Geolocation widget\/block from the JetSmartFilters plugin.<\/p>\n","protected":false},"author":1,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[396],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Setting GeoSearch Based on User Geolocation | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to set geosearch on the WordPress website based on User geolocation via the JetEngine Query Builder tool and JetSmartFilters User Geolocation widget\/block.\" \/>\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-set-geo-search-based-on-user-geolocation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting GeoSearch Based on User Geolocation | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to set geosearch on the WordPress website based on User geolocation via the JetEngine Query Builder tool and JetSmartFilters User Geolocation widget\/block.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-geolocation\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-19T11:17:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/jetengine-modules-tab-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=\"5 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-set-geo-search-based-on-user-geolocation\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-geolocation\/\",\"name\":\"Setting GeoSearch Based on User Geolocation | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2022-11-04T21:15:59+00:00\",\"dateModified\":\"2025-03-19T11:17:33+00:00\",\"description\":\"Learn how to set geosearch on the WordPress website based on User geolocation via the JetEngine Query Builder tool and JetSmartFilters User Geolocation widget\/block.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-geolocation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-geolocation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-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 Set Geo Search Based on User 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":"Setting GeoSearch Based on User Geolocation | Crocoblock","description":"Learn how to set geosearch on the WordPress website based on User geolocation via the JetEngine Query Builder tool and JetSmartFilters User Geolocation widget\/block.","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-set-geo-search-based-on-user-geolocation\/","og_locale":"en_US","og_type":"article","og_title":"Setting GeoSearch Based on User Geolocation | Crocoblock","og_description":"Learn how to set geosearch on the WordPress website based on User geolocation via the JetEngine Query Builder tool and JetSmartFilters User Geolocation widget\/block.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-geolocation\/","og_site_name":"Help Center","article_modified_time":"2025-03-19T11:17:33+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/12\/jetengine-modules-tab-1024x640.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-geolocation\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-geolocation\/","name":"Setting GeoSearch Based on User Geolocation | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2022-11-04T21:15:59+00:00","dateModified":"2025-03-19T11:17:33+00:00","description":"Learn how to set geosearch on the WordPress website based on User geolocation via the JetEngine Query Builder tool and JetSmartFilters User Geolocation widget\/block.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-geolocation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-geolocation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-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 Set Geo Search Based on User 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\/30166"}],"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\/1"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=30166"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=30166"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=30166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}