{"id":42484,"date":"2023-11-13T13:25:34","date_gmt":"2023-11-13T13:25:34","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=42484"},"modified":"2023-12-07T08:04:42","modified_gmt":"2023-12-07T08:04:42","slug":"how-to-show-posts-in-listing-grid-based-on-location-and-distance","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-location-and-distance\/","title":{"rendered":"How to Show Posts in Listing Grid Based on Location and Distance"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"activate-maps-listings-module\">Activate 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>Open the <strong><em>WordPress Dashboard &gt; JetEngine &gt; JetEngine <\/em><\/strong>directory and activate the <strong>Maps Listings <\/strong>switcher in the <strong>Modules <\/strong>tab.&nbsp;<\/p>\n\n\n\n<p>Hit 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\/11\/jetengine-modules-tab-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/jetengine-modules-tab-1-1024x640.webp\" alt=\"jetengine modules tab\" class=\"wp-image-42485\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/jetengine-modules-tab-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/jetengine-modules-tab-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/jetengine-modules-tab-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/jetengine-modules-tab-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/jetengine-modules-tab-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/jetengine-modules-tab-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Proceed to the <strong>Maps Settings <\/strong>tab and adjust settings according to your wishes.<\/p>\n\n\n\n\n\n<p>The settings will be saved automatically.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/maps-settings-tab-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/maps-settings-tab-1-1024x640.webp\" alt=\"maps settings tab\" class=\"wp-image-42486\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/maps-settings-tab-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/maps-settings-tab-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/maps-settings-tab-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/maps-settings-tab-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/maps-settings-tab-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/maps-settings-tab-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\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>Go to <strong><em>WordPress Dashboard &gt; Smart Filters &gt; Add New<\/em><\/strong>.&nbsp;<\/p>\n\n\n\n<p>Complete the <strong>Filter Name <\/strong>and select the \u201cLocation &amp; Distance\u201d <strong>Filter Type <\/strong>in the <strong>Filter Settings <\/strong>tab.<\/p>\n\n\n\n<p>Also, fill in the <strong>Filter Label <\/strong>and <strong>Active Filter Label <\/strong>fields. The first label can be used next to the filter on the page, and the second one will be shown if the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-enable-visitors-to-disable-active-filters\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Active Filters<\/strong><\/a><strong> <\/strong>or <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-active-tags-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Active Tags<\/strong><\/a><strong> <\/strong>widgets\/blocks are used.<\/p>\n\n\n\n<p>Press \u201c<strong>Update<\/strong>\u201d to save the filter.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-filter.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-filter-1024x640.webp\" alt=\"location and distance filter\" class=\"wp-image-42487\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-filter-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-filter-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-filter-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-filter-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-filter-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-filter.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 <strong><em>WordPress Dashboard &gt; JetEngine &gt; Query Builder <\/em><\/strong>to add a new query.<\/p>\n\n\n\n<p>Give a <strong>Name <\/strong>to the query and pick one of the <strong>Query Type <\/strong>options; it should be one that supports <strong>Geo Query<\/strong>. Among the options are: \u201cPosts Query,\u201d \u201cTerms Query,\u201d \u201cUsers Query,\u201d and \u201cCustom Content Type Query.\u201d<\/p>\n\n\n\n<p>Now, we will pick the \u201cPosts Query\u201d option as we will work with the <em>JetEngine<\/em>\u2019s <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-post-type-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Custom Post Type<\/strong><\/a>.<\/p>\n\n\n\n<p>In the <strong>Posts Query <\/strong>section, the <strong>General <\/strong>tab is opened by default. In the <strong>Post Type<\/strong> field, we pick \u201cJobs (Vacancies)\u201d <strong>CPT<\/strong>.<\/p>\n\n\n\n<p>We also set the <strong>Post Status <\/strong>as \u201cPublish\u201d in order to show only posts that have this status.<\/p>\n\n\n\n<p>You can also complete the next fields. However, these are not obligatory to make the current case complete.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-general.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-general-1024x640.webp\" alt=\"posts query general\" class=\"wp-image-42488\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-general-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-general-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-general-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-general-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-general-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-general.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>The following tab to proceed to is <strong>Pagination<\/strong>. Here, we set <strong>Posts Per Page<\/strong>.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">We recommend completing this field as the query may work incorrectly without it.<\/p><\/div><\/div>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-pagination.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-pagination-1024x640.webp\" alt=\"posts query pagination\" class=\"wp-image-42489\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-pagination-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-pagination-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-pagination-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-pagination-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-pagination-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-pagination.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>The most important step is adjusting the <strong>Geo Search <\/strong>tab.&nbsp;<\/p>\n\n\n\n<p>Pick the needed point on the map as a center for the initial search in the <strong>Select location <\/strong>section.<\/p>\n\n\n\n<p>Complete the <strong>Address Field <\/strong>bar with the meta field\u2019s key that stores address information about your posts.<\/p>\n\n\n\n<p>Also, set the <strong>Distance <\/strong>value, which will serve as the radius around the picked center. Additionally, the <strong>Units <\/strong>can be specified: \u201cKilometers\u201d or \u201cMiles.\u201d<\/p>\n\n\n\n<p>The query is now set; you can click the \u201c<strong>Add Query<\/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\/11\/posts-query-geo-search.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-geo-search-1024x640.webp\" alt=\"posts query geo search\" class=\"wp-image-42490\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-geo-search-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-geo-search-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-geo-search-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-geo-search-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-geo-search-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/posts-query-geo-search.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-or-update-the-page\">Add or Update 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>It is time to put the content on the page. Head to <strong><em>WordPress Dashboard &gt; Pages &gt; Add New <\/em><\/strong>or open the editor of the existing page.<\/p>\n\n\n\n<p>You can work with Gutenberg or Elementor.&nbsp;<\/p>\n\n\n\n<p>For now, we will use Elementor.<\/p>\n\n\n\n<p>Once the editor is opened, search for the <strong>Location and Distance Filter <\/strong>widget and add it to the page.<\/p>\n\n\n\n<p>Adjust its settings. The main steps are selecting the filter (<strong>Select filter <\/strong>bar) and setting its provider to \u201cJetEngine.\u201d<\/p>\n\n\n\n<p>If you want, you can alter other customization options. You can find out more about them in the <strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/location-distance-filter-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">Location &amp; Distance Filter Overview<\/a><\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-content-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-content-settings-1024x640.webp\" alt=\"location and distance content settings\" class=\"wp-image-42491\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-content-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-content-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-content-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-content-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-content-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-distance-content-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>As we want to display posts, we add the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Grid<\/strong><\/a><strong> <\/strong>widget.<\/p>\n\n\n\n<p>Select the <strong>Listing <\/strong>with the needed post type\u2019s posts in the <strong>General <\/strong>settings tab.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-general-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-general-settings-1024x640.webp\" alt=\"listing grid general settings\" class=\"wp-image-42492\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-general-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-general-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-general-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-general-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-general-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-general-settings.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. Then, choose the newly built <strong>Custom Query<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-custom-query-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-custom-query-settings-1024x640.webp\" alt=\"listing grid custom query settings\" class=\"wp-image-42493\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-custom-query-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-custom-query-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-custom-query-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-custom-query-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-custom-query-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/listing-grid-custom-query-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Set up the styling settings and hit the \u201c<strong>Publish\/Update<\/strong>\u201d button.<\/p>\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>Now, you can check the result by heading to the front end.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-filter-on-the-front-end.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-filter-on-the-front-end-1024x640.webp\" alt=\"location and distance filter on the front end\" class=\"wp-image-42494\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-filter-on-the-front-end-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-filter-on-the-front-end-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-filter-on-the-front-end-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-filter-on-the-front-end-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-filter-on-the-front-end-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-and-filter-on-the-front-end.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>You can type the name of the location in the search bar and select the needed option from the drop-down list.<\/p>\n\n\n\n<p>Then, you can also pick the distance in the bar next to the 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\/11\/location-set-in-filter.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-set-in-filter-1024x640.webp\" alt=\"location set in the filter\" class=\"wp-image-42495\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-set-in-filter-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-set-in-filter-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-set-in-filter-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-set-in-filter-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-set-in-filter-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/location-set-in-filter.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Clicking the \u201c<strong>Your current location<\/strong>\u201d button will initiate a search around your current location.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">To search around your location, you need to allow location detection in your browser for the current website. It can be done in the pop-up appearing once you click on the icon for the first time (if you haven\u2019t allowed location before) or in the browser settings.<\/p><\/div><\/div>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/your-current-location-filter.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/your-current-location-filter-1024x640.webp\" alt=\"your current location filter\" class=\"wp-image-42496\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/your-current-location-filter-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/your-current-location-filter-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/your-current-location-filter-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/your-current-location-filter-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/your-current-location-filter-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/your-current-location-filter.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<p>Now you know how to display posts in <em>JetEngine<\/em>\u2019s <strong>Listing Grid <\/strong>based on the \u201cLocation &amp; Distance\u201d<strong> <\/strong>filter from <em>JetSmartFilters<\/em> on your WordPress website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will find out how to use the Location &#038; Distance filter from JetSmartFilters to filter the posts from JetEngine\u2019s Listing Grid.<\/p>\n","protected":false},"author":9,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[394],"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 Location and Distance \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to display posts with the Listing Grid widget from JetEngine based on the Location &amp; Distance filter from JetSmartFilters 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-location-and-distance\/\" \/>\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 Location and Distance \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to display posts with the Listing Grid widget from JetEngine based on the Location &amp; Distance filter from JetSmartFilters 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-location-and-distance\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-07T08:04:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/jetengine-modules-tab-1-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\/how-to-show-posts-in-listing-grid-based-on-location-and-distance\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-location-and-distance\/\",\"name\":\"How to Show Posts in Listing Grid Based on Location and Distance \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2023-11-13T13:25:34+00:00\",\"dateModified\":\"2023-12-07T08:04:42+00:00\",\"description\":\"Learn how to display posts with the Listing Grid widget from JetEngine based on the Location & Distance filter from JetSmartFilters on your WordPress website.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-location-and-distance\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-location-and-distance\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-location-and-distance\/#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 Location and Distance\"}]},{\"@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 Location and Distance \u2014 JetEngine | Crocoblock","description":"Learn how to display posts with the Listing Grid widget from JetEngine based on the Location & Distance filter from JetSmartFilters 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-location-and-distance\/","og_locale":"en_US","og_type":"article","og_title":"How to Show Posts in Listing Grid Based on Location and Distance \u2014 JetEngine | Crocoblock","og_description":"Learn how to display posts with the Listing Grid widget from JetEngine based on the Location & Distance filter from JetSmartFilters on your WordPress website.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-location-and-distance\/","og_site_name":"Help Center","article_modified_time":"2023-12-07T08:04:42+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/11\/jetengine-modules-tab-1-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\/how-to-show-posts-in-listing-grid-based-on-location-and-distance\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-location-and-distance\/","name":"How to Show Posts in Listing Grid Based on Location and Distance \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2023-11-13T13:25:34+00:00","dateModified":"2023-12-07T08:04:42+00:00","description":"Learn how to display posts with the Listing Grid widget from JetEngine based on the Location & Distance filter from JetSmartFilters on your WordPress website.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-location-and-distance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-location-and-distance\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-show-posts-in-listing-grid-based-on-location-and-distance\/#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 Location and Distance"}]},{"@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\/42484"}],"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=42484"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=42484"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=42484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}