{"id":48208,"date":"2025-06-17T07:48:44","date_gmt":"2025-06-17T07:48:44","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=48208"},"modified":"2025-07-03T08:12:24","modified_gmt":"2025-07-03T08:12:24","slug":"displaying-distance-between-users-terms-cct-in-dynamic-field","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/displaying-distance-between-users-terms-cct-in-dynamic-field\/","title":{"rendered":"How to Display Distance Between Users\/Terms\/CCT"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"users\">Users<\/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, we will show how to display the distance between the WordPress users and the set address in the <em>JetEngine<\/em>\u2019s <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Grid<\/strong><\/a><strong> <\/strong>with the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field <\/strong>widget<\/a>\/<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-block-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">block<\/a>\/element.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-a-code-snippet\">Add a code snippet<\/h3>\n\n\n\n<p>First, you should add a code snippet to the <strong>functions.php <\/strong>file of your child theme or the snippet plugin. For example, we will use the <a href=\"https:\/\/uk.wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Code Snippets<\/em><\/a><em> <\/em>plugin.<\/p>\n\n\n\n<p>Fill in the snippet\u2019s name (in our case, \u201cGeo Distance (Users)\u201d) and paste the following code snippet into the corresponding area:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_filter( 'jet-engine\/maps-listings\/add-distance-field\/users', '__return_true' );<\/code><\/pre>\n\n\n\n<p>Press the \u201c<strong>Save Changes and Activate<\/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\/2025\/06\/geo-distance-users-code-snippet.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-users-code-snippet-1024x640.webp\" alt=\"geo distance users code snippet\" class=\"wp-image-48236\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-users-code-snippet-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-users-code-snippet-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-users-code-snippet-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-users-code-snippet-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-users-code-snippet-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-users-code-snippet.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"build-a-query\">Build a query<\/h3>\n\n\n\n<p>Next, we should build a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/query-builder-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">query<\/a> for the future listing so it shows only the items within the set <strong>Geo Query <\/strong>parameters.<\/p>\n\n\n\n<p>To do so, go to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Query Builder <\/em><\/strong>and press the \u201c<strong>Add New<\/strong>\u201d button.<\/p>\n\n\n\n<p>Complete the <strong>Name <\/strong>of the query. In our case, \u201cUser Geo Query.\u201d<\/p>\n\n\n\n<p>Then, set the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-query-builder-users-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">Users Query<\/a>\u201d <strong>Query Type<\/strong>.<\/p>\n\n\n\n<p>Scroll down to the <strong>Users Query <\/strong>section and adjust the <strong>User Role <\/strong>tab if needed. For instance, we select the \u201cSubscriber\u201d <strong>Role <\/strong>so that only users with this role will be shown in the listing.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-users-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-users-query-1024x640.webp\" alt=\"general settings section of the users query\" class=\"wp-image-48237\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-users-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-users-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-users-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-users-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-users-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-users-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Proceed to the <strong>Geo Search <\/strong>tab.&nbsp;<\/p>\n\n\n\n<p>Here, pick the center to search around on the presented map or complete the field below it with the coordinates.<\/p>\n\n\n\n<p>Next, complete the <strong>Address Field <\/strong>with the name of the meta field where the address is stored (or two fields if latitude and longitude are stored in different fields). It can be either a \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#text\" target=\"_blank\" rel=\"noreferrer noopener\">Text<\/a>\u201d field(s)<strong> <\/strong>or a \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#maps\" target=\"_blank\" rel=\"noreferrer noopener\">Map<\/a>\u201d field. In our case, a \u201cMap\u201d meta field\u2019s <strong>Name\/ID <\/strong>is \u201cuser_address.\u201d<\/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\">If you use the \u201cText\u201d meta field type for storing address, make sure to add the field(s) to the <strong>Meta fields to preload<\/strong> field in the <strong>Maps Settings<\/strong> tab of the <strong><i>WordPress Dashboard &gt; JetEngine &gt; JetEngine<\/i><\/strong> directory.<\/p><\/div><\/div>\n\n\n\n<p>Specify the <strong>Distance <\/strong>that will be used as a radius to search around the set center and select <strong>Units<\/strong>\u2014\u201cMiles\u201d or \u201cKilometers.\u201d<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-users-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-users-query-1024x640.webp\" alt=\"geo search tab of the users query\" class=\"wp-image-48238\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-users-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-users-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-users-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-users-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-users-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-users-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>You can also activate the <strong>Preview results <\/strong>toggle at the top of the page and check if there is a \u201cgeo_query_distance\u201d value presented in the list. If the preview includes results with \u201cgeo_query_distance\u201d, the query works correctly.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/preview-results-of-the-users-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/preview-results-of-the-users-query-1024x640.webp\" alt=\"preview results of the users query\" class=\"wp-image-48239\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/preview-results-of-the-users-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/preview-results-of-the-users-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/preview-results-of-the-users-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/preview-results-of-the-users-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/preview-results-of-the-users-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/preview-results-of-the-users-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Make other changes to the query if needed and press the \u201c<strong>Add Query<\/strong>\u201d button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"build-a-filter\">Build a filter<\/h3>\n\n\n\n<p>Now, we should build a <em>JetSmartFilters <\/em><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/filter-creation-settings-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">filter<\/a> that will be used on the front end to set the needed address.<\/p>\n\n\n\n<p>Proceed to the <strong><em>WordPress Dashboard &gt; Smart Filters &gt; Add New <\/em><\/strong>directory.<\/p>\n\n\n\n<p>Name a filter (here, \u201cLocation and Distance Filter.\u201d)<\/p>\n\n\n\n<p>Go to the <strong>Filter Settings <\/strong>section and select the <strong>Filter Type<\/strong>: it can be either the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-filter-listings-based-on-geolocation\/\" target=\"_blank\" rel=\"noreferrer noopener\">User Geolocation<\/a>\u201d or the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/location-distance-filter-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">Location &amp; Distance<\/a>\u201d option. In our case, we select the \u201cLocation &amp; Distance\u201d option so the user can manually type in the needed address and select the radius.<\/p>\n\n\n\n<p>Next, we also complete the <strong>Filter Labels <\/strong>section and press the \u201c<strong>Update<\/strong>\u201d button 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\/2025\/06\/location-and-distance-filter.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-1024x640.webp\" alt=\"location and distance filter\" class=\"wp-image-48240\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-a-listing-item\">Create a listing item<\/h3>\n\n\n\n<p>Now, we should create a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-template-in-elementor-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">listing<\/a> with the users. To do so, head to the <strong><em>WordPress Dashboard > JetEngine > Listings\/Components <\/em><\/strong>directory.\u00a0<\/p>\n\n\n\n<p>Here, press the \u201c<strong>Add New Item<\/strong>\u201d button to open the pre-editing pop-up.&nbsp;<\/p>\n\n\n\n<p>Select the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-how-to-create-a-listing-template-for-users\/\" target=\"_blank\" rel=\"noreferrer noopener\">Users<\/a>\u201d option as the <strong>Listing source <\/strong>and set the <strong>Listing item name<\/strong>.<\/p>\n\n\n\n<p>Then, pick any preferred <strong>Listing view<\/strong>. For example, we select the \u201cElementor\u201d option.<\/p>\n\n\n\n<p>Push the \u201c<strong>Create Listing Item<\/strong>\u201d button to open the editor.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-users-listing-popup.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-users-listing-popup-1024x640.webp\" alt=\"set up users listing popup\" class=\"wp-image-48241\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-users-listing-popup-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-users-listing-popup-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-users-listing-popup-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-users-listing-popup-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-users-listing-popup-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-users-listing-popup.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In the editor, you can display the needed information with the help of the <em>JetEngine<\/em>\u2019s <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/dynamic-widgets-and-blocks\/\" target=\"_blank\" rel=\"noreferrer noopener\">dynamic widgets\/blocks<\/a>\/elements. For instance, first, we add a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field <\/strong>widget<\/a> that will display the user\u2019s name.<\/p>\n\n\n\n<p>Next, add one more <strong>Dynamic Field <\/strong>to the page.<\/p>\n\n\n\n<p>Leave the default \u201cPost\/Term\/User\/Object Data\u201d <strong>Source <\/strong>and paste the \u201cgeo_query_distance\u201d value in the <strong>Object field \/ Meta field \/ Repeater key \/ Component prop<\/strong> field.<\/p>\n\n\n\n<p>Next, we activate the <strong>Filter field output <\/strong>toggle and select the \u201cFormat number\u201d option in the <strong>Callback <\/strong>field. We do this so the decimal points of the distance number shorten to two (the \u201c2\u201d value is set by default in the <strong>Decimal points <\/strong>field).<\/p>\n\n\n\n<p>Then, we also activate the <strong>Customize field output <\/strong>toggle and paste the \u201cGeo: %s km\u201d value into the <strong>Field format<\/strong> field, where \u201c%s\u201d is the dynamic number value.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-users-listing-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-users-listing-in-elementor-1024x640.webp\" alt=\"dynamic field in the users listing in elementor\" class=\"wp-image-48242\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-users-listing-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-users-listing-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-users-listing-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-users-listing-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-users-listing-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-users-listing-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Customize the page further if needed and press the \u201c<strong>Publish<\/strong>\u201d button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-a-listing-to-the-page\">Add a listing to the page<\/h3>\n\n\n\n<p>Next, go to <strong><em>WordPress Dashboard &gt; Pages <\/em><\/strong>and add a new page or select the already created one and open it in the editor. For instance, we open the page in Elementor.<\/p>\n\n\n\n<p>Add a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Grid<\/strong><\/a><strong> <\/strong>or <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/map-listing-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Map Listing<\/strong><\/a><strong> <\/strong>to the page to display a recently built user\u2019s listing. Now, we add a <strong>Listing Grid<\/strong> widget.<\/p>\n\n\n\n<p>Select the previously created <strong>Listing <\/strong>in the <strong>General <\/strong>tab.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-users-listing-grid-widget-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-users-listing-grid-widget-in-elementor-1024x640.webp\" alt=\"general tab of the users listing grid widget in elementor\" class=\"wp-image-48243\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-users-listing-grid-widget-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-users-listing-grid-widget-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-users-listing-grid-widget-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-users-listing-grid-widget-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-users-listing-grid-widget-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-users-listing-grid-widget-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 activate the <strong>Use Custom Query <\/strong>toggle.<\/p>\n\n\n\n<p>Select the built query in the <strong>Custom Query <\/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\/2025\/06\/custom-query-tab-of-the-users-listing-grid-widget-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-users-listing-grid-widget-in-elementor-1024x640.webp\" alt=\"custom query tab of the users listing grid widget in elementor\" class=\"wp-image-48244\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-users-listing-grid-widget-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-users-listing-grid-widget-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-users-listing-grid-widget-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-users-listing-grid-widget-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-users-listing-grid-widget-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-users-listing-grid-widget-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Next, add a <strong>Location and distance <\/strong>or <strong>User Geolocation <\/strong>widget to the page to define the point that will be taken for listing filtering. As we have created the \u201cLocation &amp; Distance\u201d filter beforehand, we add a <strong>Location and distance <\/strong>widget.<\/p>\n\n\n\n<p>Pick a previously built filter in the <strong>Select filter <\/strong>field and select the \u201cJetEngine\u201d option as a provider 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\/2025\/06\/content-tab-of-the-location-and-distance-filter-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/content-tab-of-the-location-and-distance-filter-in-elementor-1024x640.webp\" alt=\"content tab of the location and distance filter in elementor\" class=\"wp-image-48245\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/content-tab-of-the-location-and-distance-filter-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/content-tab-of-the-location-and-distance-filter-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/content-tab-of-the-location-and-distance-filter-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/content-tab-of-the-location-and-distance-filter-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/content-tab-of-the-location-and-distance-filter-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/content-tab-of-the-location-and-distance-filter-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Also, optionally, proceed to the <strong>Distance List <\/strong>to change the distance values displayed in the filter. For example, we set the \u201c100\u201d km, \u201c200\u201d km, and \u201c500\u201d km values.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/distance-list-tab-of-the-location-and-distance-filter-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/distance-list-tab-of-the-location-and-distance-filter-in-elementor-1024x640.webp\" alt=\"distance list tab of the location and distance filter in elementor\" class=\"wp-image-48246\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/distance-list-tab-of-the-location-and-distance-filter-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/distance-list-tab-of-the-location-and-distance-filter-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/distance-list-tab-of-the-location-and-distance-filter-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/distance-list-tab-of-the-location-and-distance-filter-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/distance-list-tab-of-the-location-and-distance-filter-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/distance-list-tab-of-the-location-and-distance-filter-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Adjust the following settings if needed and click the \u201c<strong>Publish<\/strong>\u201d button to save the result.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"check-the-result\">Check the result<\/h3>\n\n\n\n<p>Proceed to the front-end to check the result.<\/p>\n\n\n\n<p>First, you will observe the filter and a listing. As we have the <strong>Location and distance <\/strong>filter, we paste the address in the corresponding text field and select the distance radius in the dropdown near the field.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/users-listing-on-front-end.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/users-listing-on-front-end-1024x640.webp\" alt=\"users listing on front end\" class=\"wp-image-48247\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/users-listing-on-front-end-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/users-listing-on-front-end-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/users-listing-on-front-end-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/users-listing-on-front-end-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/users-listing-on-front-end-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/users-listing-on-front-end.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once done, the listing is filtered, and the user(s) within the set radius of the entered address will be shown.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/user-location-filtered.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/user-location-filtered-1024x640.webp\" alt=\"user location filtered\" class=\"wp-image-48248\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/user-location-filtered-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/user-location-filtered-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/user-location-filtered-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/user-location-filtered-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/user-location-filtered-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/user-location-filtered.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"terms\">Terms<\/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>Next, we will show how to display the distance between WordPress terms and the set address with the help of the <em>JetEngine<\/em>\u2019s <strong>Listing template <\/strong>and <strong>Dynamic Field <\/strong>widget\/block\/element.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-a-code-snippet\">Add a code snippet<\/h3>\n\n\n\n<p>First, you should add a code snippet to the <strong>functions.php <\/strong>file of your child theme or the snippet plugin. For example, we will use the <em>Code Snippets <\/em>plugin.<\/p>\n\n\n\n<p>Fill in the snippet\u2019s name (here, \u201cGeo Distance (Terms)\u201d) and paste the following code snippet into the corresponding area:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_filter( 'jet-engine\/maps-listings\/add-distance-field\/terms', '__return_true' );<\/code><\/pre>\n\n\n\n<p>Press the \u201c<strong>Save Changes and Activate<\/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\/2025\/06\/geo-distance-terms-code-snippet.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-terms-code-snippet-1024x640.webp\" alt=\"geo distance terms code snippet\" class=\"wp-image-48249\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-terms-code-snippet-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-terms-code-snippet-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-terms-code-snippet-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-terms-code-snippet-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-terms-code-snippet-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-terms-code-snippet.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"build-a-query\">Build a query<\/h3>\n\n\n\n<p>Go to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Query Builder <\/em><\/strong>and press the \u201c<strong>Add New<\/strong>\u201d button.<\/p>\n\n\n\n<p>Complete the <strong>Name <\/strong>of the query. In our case, \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-query-builder-terms-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">Terms Geo<\/a>.\u201d<\/p>\n\n\n\n<p>Then, set the \u201cTerms Query\u201d <strong>Query Type<\/strong>.<\/p>\n\n\n\n<p>Scroll down to the <strong>Terms Query <\/strong>section and select the <strong>Taxonomy <\/strong>in the opened <strong>General <\/strong>tab.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-terms-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-terms-query-1024x640.webp\" alt=\"general settings section of the terms query\" class=\"wp-image-48250\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-terms-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-terms-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-terms-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-terms-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-terms-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-terms-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Proceed to the <strong>Geo Search <\/strong>tab.&nbsp;<\/p>\n\n\n\n<p>Here, pick the center to search around on the presented map or complete the field below it with the coordinates.<\/p>\n\n\n\n<p>Next, complete the <strong>Address Field <\/strong>with the name of the meta field where the address is stored (or two fields if latitude and longitude are stored in different fields). In our case, \u201caddress_city.\u201d<\/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\">If you use the \u201cText\u201d meta field type for storing address, make sure to add the field(s) to the <strong>Meta fields to preload<\/strong> field in the <strong>Maps Settings<\/strong> tab of the <strong><i>WordPress Dashboard &gt; JetEngine &gt; JetEngine<\/i><\/strong> directory.<\/p><\/div><\/div>\n\n\n\n<p>Specify the <strong>Distance <\/strong>that will be set as a radius to search around the set center and select <strong>Units<\/strong>\u2014\u201cMiles\u201d or \u201cKilometers.\u201d<\/p>\n\n\n\n<p>You can also activate the <strong>Preview results <\/strong>toggle at the top of the page and check if there is a \u201cgeo_query_distance\u201d value presented in the list. If so, the query works correctly.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-terms-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-terms-query-1024x640.webp\" alt=\"geo search tab of the terms query\" class=\"wp-image-48251\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-terms-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-terms-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-terms-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-terms-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-terms-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-search-tab-of-the-terms-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Make other changes to the query if needed and press the \u201c<strong>Add Query<\/strong>\u201d button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"build-a-filter\">Build a filter<\/h3>\n\n\n\n<p>Now, we should build a filter that will be used on the front end to set the needed address.<\/p>\n\n\n\n<p>Proceed to the <strong><em>WordPress Dashboard &gt; Smart Filters &gt; Add New <\/em><\/strong>directory.<\/p>\n\n\n\n<p>Name a filter (here, \u201cLocation and Distance Filter.\u201d)<\/p>\n\n\n\n<p>Go to the <strong>Filter Settings <\/strong>section and select the <strong>Filter Type<\/strong>: it can be either the \u201cUser Geolocation\u201d or the \u201cLocation &amp; Distance\u201d option. In our case, we select the \u201cLocation &amp; Distance\u201d option so the user can manually type in the needed address and select the radius.<\/p>\n\n\n\n<p>Next, we also complete the <strong>Filter Labels <\/strong>section and press the \u201c<strong>Update<\/strong>\u201d button 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\/2025\/06\/location-and-distance-filter-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-1-1024x640.webp\" alt=\"location and distance filter\" class=\"wp-image-48252\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-a-listing-item\">Create a listing item<\/h3>\n\n\n\n<p>Now, head to the <strong><em>WordPress Dashboard &gt; JetEngine &gt; Listings\/Components <\/em><\/strong>directory.&nbsp;<\/p>\n\n\n\n<p>Here, press the \u201c<strong>Add New Item<\/strong>\u201d button to open the pre-editing pop-up.&nbsp;<\/p>\n\n\n\n<p>Select the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/creating-a-listing-template-for-the-terms-from-custom-taxonomy-with-jetengine\/\" target=\"_blank\" rel=\"noreferrer noopener\">Terms<\/a>\u201d option as the <strong>Listing source<\/strong>, pick the needed option in the <strong>From taxonomy <\/strong>field,<strong> <\/strong>and set the <strong>Listing item name<\/strong>.<\/p>\n\n\n\n<p>Then, pick any preferred <strong>Listing view<\/strong>. For example, we select the \u201cElementor\u201d option.<\/p>\n\n\n\n<p>Push the \u201c<strong>Create Listing Item<\/strong>\u201d button to open the editor.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-terms-query-popup.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-terms-query-popup-1024x640.webp\" alt=\"set up terms query popup\" class=\"wp-image-48253\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-terms-query-popup-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-terms-query-popup-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-terms-query-popup-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-terms-query-popup-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-terms-query-popup-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-terms-query-popup.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In the editor, you can display the needed information with the help of the <em>JetEngine<\/em>\u2019s dynamic widgets\/blocks\/elements.<\/p>\n\n\n\n<p>Next, add a <strong>Dynamic Field <\/strong>to the page.<\/p>\n\n\n\n<p>Leave the default \u201cPost\/Term\/User\/Object Data\u201d <strong>Source <\/strong>and paste the \u201cgeo_query_distance\u201d value in the <strong>Object field \/ Meta field \/ Repeater key \/ Component prop<\/strong> field.<\/p>\n\n\n\n<p>Next, we activate the <strong>Filter field output <\/strong>toggle and select the \u201cFormat number\u201d option in the <strong>Callback <\/strong>field. We do this so the decimal points of the distance number shorten to two (the \u201c2\u201d value is set by default in the <strong>Decimal points <\/strong>field).<\/p>\n\n\n\n<p>Then, we also activate the <strong>Customize field output <\/strong>toggle and paste the \u201cGeo: %s km\u201d value into the <strong>Field format<\/strong> field, where \u201c%s\u201d is the dynamic number value.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-terms-listing-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-terms-listing-in-elementor-1024x640.webp\" alt=\"dynamic field in the terms listing in elementor\" class=\"wp-image-48254\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-terms-listing-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-terms-listing-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-terms-listing-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-terms-listing-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-terms-listing-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-terms-listing-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Customize the page further if needed and press the \u201c<strong>Publish<\/strong>\u201d button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-a-listing-to-the-page\">Add a listing to the page<\/h3>\n\n\n\n<p>Next, go to <strong><em>WordPress Dashboard &gt; Pages <\/em><\/strong>and add a new page or select the already edited one and open it in the editor. For instance, we open the page in Elementor.<\/p>\n\n\n\n<p>Add a <strong>Location and distance <\/strong>or <strong>User Geolocation <\/strong>widget to the page. For example, we add a <strong>Location and distance <\/strong>widget as we built the filter for this type earlier.<\/p>\n\n\n\n<p>Pick a previously built filter in the <strong>Select filter <\/strong>field and select the \u201cJetEngine\u201d option as a provider in the <strong>This filter for <\/strong>field.<\/p>\n\n\n\n<p>Next, add a <strong>Listing Grid <\/strong>or <strong>Map Listing <\/strong>to the page. For example, we add a <strong>Listing Grid<\/strong> widget.<\/p>\n\n\n\n<p>Select the previously created <strong>Listing <\/strong>in the <strong>General <\/strong>tab.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-terms-listing-grid-widget-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-terms-listing-grid-widget-in-elementor-1024x640.webp\" alt=\"general tab of the terms listing grid widget in elementor\" class=\"wp-image-48255\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-terms-listing-grid-widget-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-terms-listing-grid-widget-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-terms-listing-grid-widget-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-terms-listing-grid-widget-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-terms-listing-grid-widget-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-terms-listing-grid-widget-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 activate the <strong>Use Custom Query <\/strong>toggle.<\/p>\n\n\n\n<p>Select the built query in the <strong>Custom Query <\/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\/2025\/06\/custom-query-tab-of-the-terms-listing-grid-widget-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-terms-listing-grid-widget-in-elementor-1024x640.webp\" alt=\"custom query tab of the terms listing grid widget in elementor\" class=\"wp-image-48256\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-terms-listing-grid-widget-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-terms-listing-grid-widget-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-terms-listing-grid-widget-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-terms-listing-grid-widget-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-terms-listing-grid-widget-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-terms-listing-grid-widget-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Adjust the following settings if needed and click the \u201c<strong>Publish<\/strong>\u201d button to save the result.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"check-the-result\">Check the result<\/h3>\n\n\n\n<p>Proceed to the front-end to check the result.<\/p>\n\n\n\n<p>Paste the address in the filter and select the radius in the dropdown. If everything is set correctly, you will see the filtered terms.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/term-location-filtered.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/term-location-filtered-1024x640.webp\" alt=\"term location filtered\" class=\"wp-image-48257\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/term-location-filtered-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/term-location-filtered-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/term-location-filtered-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/term-location-filtered-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/term-location-filtered-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/term-location-filtered.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"cct\">CCT<\/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, we will show how to display the distance between the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-content-type\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Custom Content Type (CCT)<\/strong><\/a><strong> <\/strong>items and the set address in the <em>JetEngine<\/em>\u2019s listing with the <strong>Dynamic Field<\/strong> widget\/block\/element.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-a-code-snippet\">Add a code snippet<\/h3>\n\n\n\n<p>First, you should add a code snippet to the <strong>functions.php <\/strong>file of your child theme or the snippet plugin. For example, we will use the <em>Code Snippets <\/em>plugin.<\/p>\n\n\n\n<p>Fill in the snippet\u2019s name (here, \u201cGeo Distance (CCT)\u201d) and paste the following code snippet into the corresponding area:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_filter('jet-engine\/maps-listings\/add-distance-field\/custom-content-type','__return_true' );<\/code><\/pre>\n\n\n\n<p>Press the \u201c<strong>Save Changes and Activate<\/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\/2025\/06\/geo-distance-cct-code-snippet.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-cct-code-snippet-1024x640.webp\" alt=\"geo distance cct code snippet\" class=\"wp-image-48258\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-cct-code-snippet-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-cct-code-snippet-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-cct-code-snippet-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-cct-code-snippet-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-cct-code-snippet-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-cct-code-snippet.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"build-a-query\">Build a query<\/h3>\n\n\n\n<p>Now, go to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Query Builder <\/em><\/strong>and press the \u201c<strong>Add New<\/strong>\u201d button.<\/p>\n\n\n\n<p>Complete the <strong>Name <\/strong>of the query. In our case, \u201cCCT Geo.\u201d<\/p>\n\n\n\n<p>Then, set the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/query-builder-cct-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">Custom Content Type Query<\/a>\u201d <strong>Query 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\/2025\/06\/general-settings-section-of-the-cct-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-cct-query-1024x640.webp\" alt=\"general settings section of the cct query\" class=\"wp-image-48259\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-cct-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-cct-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-cct-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-cct-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-cct-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-settings-section-of-the-cct-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Proceed to the <strong>Content Types Query <\/strong>section and select the <strong>CCT <\/strong>you want to work with in the <strong>From Content Type <\/strong>selector.<\/p>\n\n\n\n<p>Here, pick the center to search around on the presented map or complete the field below it with the coordinates.<\/p>\n\n\n\n<p>Next, complete the <strong>Address Field <\/strong>with the name of the meta field where the address is stored (or two fields if latitude and longitude are stored in different fields). In our case, \u201clocation_address.\u201d<\/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\">If you use the \u201cText\u201d meta field type for storing address, make sure to add the field(s) to the <strong>Meta fields to preload<\/strong> field in the <strong>Maps Settings<\/strong> tab of the <strong><i>WordPress Dashboard &gt; JetEngine &gt; JetEngine<\/i><\/strong> directory.<\/p><\/div><\/div>\n\n\n\n<p>Specify the <strong>Distance <\/strong>that will be set as a radius to search around the set center and select <strong>Units<\/strong>\u2014\u201cMiles\u201d or \u201cKilometers.\u201d<\/p>\n\n\n\n<p>You can also activate the <strong>Preview results <\/strong>toggle at the top of the page and check if there is a \u201cgeo_query_distance\u201d value presented in the list. If so, the query works correctly.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-settings-and-preview-results-sections-of-the-cct-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-settings-and-preview-results-sections-of-the-cct-query-1024x640.webp\" alt=\"geo distance settings and preview results sections of the cct query\" class=\"wp-image-48260\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-settings-and-preview-results-sections-of-the-cct-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-settings-and-preview-results-sections-of-the-cct-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-settings-and-preview-results-sections-of-the-cct-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-settings-and-preview-results-sections-of-the-cct-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-settings-and-preview-results-sections-of-the-cct-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-settings-and-preview-results-sections-of-the-cct-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Make other changes to the query if needed and press the \u201c<strong>Add Query<\/strong>\u201d button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"build-a-filter\">Build a filter<\/h3>\n\n\n\n<p>Now, we should build a filter that will be used on the front end to set the needed address.<\/p>\n\n\n\n<p>To do so, proceed to the <strong><em>WordPress Dashboard &gt; Smart Filters &gt; Add New <\/em><\/strong>directory.<\/p>\n\n\n\n<p>Name a filter (here, \u201cLocation and Distance Filter.\u201d)<\/p>\n\n\n\n<p>Head to the <strong>Filter Settings <\/strong>section and select the <strong>Filter Type<\/strong>: it can be either the \u201cUser Geolocation\u201d or the \u201cLocation &amp; Distance\u201d option. In our case, we select the \u201cLocation &amp; Distance\u201d option so the user can manually type in the needed address and select the radius.<\/p>\n\n\n\n<p>Next, we also complete the <strong>Filter Labels <\/strong>section and press the \u201c<strong>Update<\/strong>\u201d button 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\/2025\/06\/location-and-distance-filter-2.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-2-1024x640.webp\" alt=\"location and distance filter\" class=\"wp-image-48261\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-2-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-2-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-2-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-2-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-2-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/location-and-distance-filter-2.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-a-listing-item\">Create a listing item<\/h3>\n\n\n\n<p>Now, head to the <strong><em>WordPress Dashboard &gt; JetEngine &gt; Listings\/Components <\/em><\/strong>directory.&nbsp;<\/p>\n\n\n\n<p>Here, press the \u201c<strong>Add New Item<\/strong>\u201d button to open the pre-editing pop-up.&nbsp;<\/p>\n\n\n\n<p>Select the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/creating-custom-content-type-listing-template\/\" target=\"_blank\" rel=\"noreferrer noopener\">Custom Content Type<\/a>\u201d option as the <strong>Listing source<\/strong>, pick the needed option in the <strong>From taxonomy <\/strong>field,<strong> <\/strong>and set the <strong>Listing item name<\/strong>.<\/p>\n\n\n\n<p>Then, pick any preferred <strong>Listing view<\/strong>. For example, we select the \u201cElementor\u201d option.<\/p>\n\n\n\n<p>Push the \u201c<strong>Create Listing Item<\/strong>\u201d button to open the editor.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-cct-listing-popup.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-cct-listing-popup-1024x640.webp\" alt=\"set up cct listing popup\" class=\"wp-image-48262\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-cct-listing-popup-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-cct-listing-popup-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-cct-listing-popup-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-cct-listing-popup-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-cct-listing-popup-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/set-up-cct-listing-popup.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In the editor, you can display the needed information with the help of the <em>JetEngine<\/em>\u2019s dynamic widgets\/blocks\/elements.<\/p>\n\n\n\n<p>Next, add a <strong>Dynamic Field <\/strong>to the page.<\/p>\n\n\n\n<p>Leave the default \u201cPost\/Term\/User\/Object Data\u201d <strong>Source <\/strong>and paste the \u201cgeo_query_distance\u201d value in the <strong>Object field \/ Meta field \/ Repeater key \/ Component prop<\/strong> field.<\/p>\n\n\n\n<p>Next, we activate the <strong>Filter field output <\/strong>toggle and select the \u201cFormat number\u201d option in the <strong>Callback <\/strong>field. We do this so the decimal points of the distance number shorten to two (the \u201c2\u201d value is set by default in the <strong>Decimal points <\/strong>field).<\/p>\n\n\n\n<p>Then, we also activate the <strong>Customize field output <\/strong>toggle and paste the \u201cGeo: %s km\u201d value into the <strong>Field format<\/strong> field, where \u201c%s\u201d is the dynamic number value.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-cct-listing-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-cct-listing-in-elementor-1024x640.webp\" alt=\"dynamic field in the cct listing in elementor\" class=\"wp-image-48263\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-cct-listing-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-cct-listing-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-cct-listing-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-cct-listing-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-cct-listing-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/dynamic-field-in-the-cct-listing-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Customize the page further if needed and press the \u201c<strong>Publish<\/strong>\u201d button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-a-listing-to-the-page\">Add a listing to the page<\/h3>\n\n\n\n<p>Next, go to <strong><em>WordPress Dashboard &gt; Pages <\/em><\/strong>and add a new page or select the already edited one and open it in the editor. For instance, we open the page in Elementor.<\/p>\n\n\n\n<p>Add a <strong>Location and distance <\/strong>or <strong>User Geolocation <\/strong>widget to the page. For example, we add a <strong>Location and distance <\/strong>widget as we built the filter for this type earlier.<\/p>\n\n\n\n<p>Pick a previously built filter in the <strong>Select filter <\/strong>field and select the \u201cJetEngine\u201d option as a provider in the <strong>This filter for <\/strong>field.<\/p>\n\n\n\n<p>Add a <strong>Listing Grid <\/strong>or <strong>Map Listing <\/strong>to the page. For example, we add a <strong>Listing Grid<\/strong> widget.<\/p>\n\n\n\n<p>Select the previously created <strong>Listing <\/strong>in the <strong>General <\/strong>tab.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-cct-listing-grid-widget-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-cct-listing-grid-widget-in-elementor-1024x640.webp\" alt=\"general tab of the cct listing grid widget in elementor\" class=\"wp-image-48266\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-cct-listing-grid-widget-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-cct-listing-grid-widget-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-cct-listing-grid-widget-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-cct-listing-grid-widget-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-cct-listing-grid-widget-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/general-tab-of-the-cct-listing-grid-widget-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 activate the <strong>Use Custom Query <\/strong>toggle.<\/p>\n\n\n\n<p>Select the built query in the <strong>Custom Query <\/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\/2025\/06\/custom-query-tab-of-the-cct-listing-grid-widget-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-cct-listing-grid-widget-in-elementor-1024x640.webp\" alt=\"custom query tab of the cct listing grid widget in elementor\" class=\"wp-image-48264\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-cct-listing-grid-widget-in-elementor-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-cct-listing-grid-widget-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-cct-listing-grid-widget-in-elementor-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-cct-listing-grid-widget-in-elementor-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-cct-listing-grid-widget-in-elementor-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/custom-query-tab-of-the-cct-listing-grid-widget-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Adjust the following settings if needed and click the \u201c<strong>Publish<\/strong>\u201d button to save the result.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"check-the-result\">Check the result<\/h3>\n\n\n\n<p>Proceed to the front-end to check the result.<\/p>\n\n\n\n<p>If the <strong>Location and distance <\/strong>filter is used, paste the address in the corresponding text field and specify the radius next to it in the selector.<\/p>\n\n\n\n<p>If everything is set correctly, the listing will show only the filtered <strong>CCT <\/strong>items.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/cct-location-filtered.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/cct-location-filtered-1024x640.webp\" alt=\"cct location filtered\" class=\"wp-image-48265\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/cct-location-filtered-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/cct-location-filtered-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/cct-location-filtered-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/cct-location-filtered-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/cct-location-filtered-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/cct-location-filtered.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<p>That\u2019s all about displaying the distance between WordPress users\/terms\/CCT items and the set address in the <em>JetEngine<\/em>\u2019s listing with the help of the <strong>Dynamic Field<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, you will find out how to display the distance between WordPress users\/terms\/CCT items in the JetEngine\u2019s Dynamic Field.<\/p>\n","protected":false},"author":9,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[388],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Display Distance Between Users\/Terms\/CCT \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to display the distance between users\/terms\/CCT in the Dynamic Field of the JetEngine plugin 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\/displaying-distance-between-users-terms-cct-in-dynamic-field\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Display Distance Between Users\/Terms\/CCT \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to display the distance between users\/terms\/CCT in the Dynamic Field of the JetEngine plugin for WordPress.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/displaying-distance-between-users-terms-cct-in-dynamic-field\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-03T08:12:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-users-code-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=\"18 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\/displaying-distance-between-users-terms-cct-in-dynamic-field\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/displaying-distance-between-users-terms-cct-in-dynamic-field\/\",\"name\":\"How to Display Distance Between Users\/Terms\/CCT \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2025-06-17T07:48:44+00:00\",\"dateModified\":\"2025-07-03T08:12:24+00:00\",\"description\":\"Learn how to display the distance between users\/terms\/CCT in the Dynamic Field of the JetEngine plugin for WordPress.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/displaying-distance-between-users-terms-cct-in-dynamic-field\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/displaying-distance-between-users-terms-cct-in-dynamic-field\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/displaying-distance-between-users-terms-cct-in-dynamic-field\/#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 Display Distance Between Users\/Terms\/CCT\"}]},{\"@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 Display Distance Between Users\/Terms\/CCT \u2014 JetEngine | Crocoblock","description":"Learn how to display the distance between users\/terms\/CCT in the Dynamic Field of the JetEngine plugin 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\/displaying-distance-between-users-terms-cct-in-dynamic-field\/","og_locale":"en_US","og_type":"article","og_title":"How to Display Distance Between Users\/Terms\/CCT \u2014 JetEngine | Crocoblock","og_description":"Learn how to display the distance between users\/terms\/CCT in the Dynamic Field of the JetEngine plugin for WordPress.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/displaying-distance-between-users-terms-cct-in-dynamic-field\/","og_site_name":"Help Center","article_modified_time":"2025-07-03T08:12:24+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/geo-distance-users-code-snippet-1024x640.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"18 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/displaying-distance-between-users-terms-cct-in-dynamic-field\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/displaying-distance-between-users-terms-cct-in-dynamic-field\/","name":"How to Display Distance Between Users\/Terms\/CCT \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2025-06-17T07:48:44+00:00","dateModified":"2025-07-03T08:12:24+00:00","description":"Learn how to display the distance between users\/terms\/CCT in the Dynamic Field of the JetEngine plugin for WordPress.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/displaying-distance-between-users-terms-cct-in-dynamic-field\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/displaying-distance-between-users-terms-cct-in-dynamic-field\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/displaying-distance-between-users-terms-cct-in-dynamic-field\/#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 Display Distance Between Users\/Terms\/CCT"}]},{"@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\/48208"}],"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=48208"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=48208"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=48208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}