{"id":396862,"date":"2026-11-02T09:38:32","date_gmt":"2026-11-02T09:38:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/query-markers-for-bricks-leaflet-map\/"},"modified":"2026-11-02T12:37:20","modified_gmt":"2026-11-02T12:37:20","slug":"query-markers-for-bricks-leaflet-map","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/query-markers-for-bricks-leaflet-map\/","author":20657129,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.4","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Query Markers for Bricks Leaflet Map","header_author":"IkaCode","header_description":"Adds a \"Query markers\" panel to the Bricks Map (Leaflet) element: one marker per post, from an ACF OpenStreetMap field or from latitude\/longitude fields.","assets_banners_color":"454f7f","last_updated":"2026-11-02 12:37:20","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/ikacode.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":122,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"louischan","date":"2026-11-02 12:37:20","revision":3779776}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3779790,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3779790,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3779780,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3779980,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3779980,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":3779780,"resolution":"1","location":"assets","locale":"","width":1853,"height":966},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":3779780,"resolution":"2","location":"assets","locale":"","width":507,"height":650},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":3779780,"resolution":"3","location":"assets","locale":"","width":561,"height":818},"screenshot-4.jpg":{"filename":"screenshot-4.jpg","revision":3779780,"resolution":"4","location":"assets","locale":"","width":1342,"height":665}},"screenshots":{"1":"A map with one marker per post on the frontend.","2":"The \"Query markers\" panel of the Map (Leaflet) element.","3":"The regular Markers panel containing one marker with the coordinate variable.","4":"The map as it shows in the builder, with no marker but a message indicating how many markers will show on the front-end based on the query and optional filter."}},"plugin_section":[],"plugin_tags":[2211,198723,4595,2909,16164],"plugin_category":[49,59],"plugin_contributors":[290234],"plugin_business_model":[],"class_list":["post-396862","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-bricks","plugin_tags-leaflet","plugin_tags-map","plugin_tags-openstreetmap","plugin_category-maps-and-location","plugin_category-utilities-and-tools","plugin_contributors-louischan","plugin_committers-louischan"],"banners":{"banner":"https:\/\/ps.w.org\/query-markers-for-bricks-leaflet-map\/assets\/banner-772x250.png?rev=3779980","banner_2x":"https:\/\/ps.w.org\/query-markers-for-bricks-leaflet-map\/assets\/banner-1544x500.png?rev=3779980","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/query-markers-for-bricks-leaflet-map\/assets\/icon.svg?rev=3779780","icon":"https:\/\/ps.w.org\/query-markers-for-bricks-leaflet-map\/assets\/icon.svg?rev=3779780","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/query-markers-for-bricks-leaflet-map\/assets\/screenshot-1.jpg?rev=3779780","caption":"A map with one marker per post on the frontend."},{"src":"https:\/\/ps.w.org\/query-markers-for-bricks-leaflet-map\/assets\/screenshot-2.jpg?rev=3779780","caption":"The \"Query markers\" panel of the Map (Leaflet) element."},{"src":"https:\/\/ps.w.org\/query-markers-for-bricks-leaflet-map\/assets\/screenshot-3.jpg?rev=3779780","caption":"The regular Markers panel containing one marker with the coordinate variable."},{"src":"https:\/\/ps.w.org\/query-markers-for-bricks-leaflet-map\/assets\/screenshot-4.jpg?rev=3779780","caption":"The map as it shows in the builder, with no marker but a message indicating how many markers will show on the front-end based on the query and optional filter."}],"raw_content":"<!--section=description-->\n<p>The Map (Leaflet) element of the Bricks theme (2.1+) has no query loop option, unlike its Google Map element. This plugin adds a \"Query markers\" panel to the Map (Leaflet) element: the first marker you set is used as a template and duplicated for every post of the query, with all dynamic data tags rendered in the context of each post.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li>Location from the ACF OpenStreetMap Field plugin (any return format) or from two latitude \/ longitude custom fields (ACF, Meta Box, JetEngine, native custom fields...).<\/li>\n<li>Any Bricks dynamic data tag in the marker popup (title, link, ACF fields...).<\/li>\n<li>Optional filter on a custom field, e.g. a \"show on map\" True\/False field.<\/li>\n<li>Posts sharing the same location: merged into one marker with stacked popups, or spread on a small circle.<\/li>\n<li>Map automatically centered on all markers.<\/li>\n<li>Builder notice showing how many markers were found.<\/li>\n<\/ul>\n\n<p>This plugin requires the Bricks theme, which is a commercial product. It is not affiliated with or endorsed by Bricks Builder.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin.<\/li>\n<li>In Bricks, add a Map (Leaflet) element (not inside a query loop).<\/li>\n<li>In \"Markers\", add ONE marker. It is the template used for every post. Set its Coordinates to {map_coords} (required).\nThe popup is optional and accepts any Bricks dynamic tag, for example:\n<strong>{post_title}<\/strong><br><a href=\"{post_url}\">Read more<\/a><\/li>\n<li>Open the \"Query markers\" panel, enable \"Generate markers from a query\" and choose the post type, the location source and the field names.<\/li>\n<li>Leave \"Map center\" empty: the map is centered on all markers.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"why%20are%20the%20markers%20not%20visible%20in%20the%20builder%3F\"><h3>Why are the markers not visible in the builder?<\/h3><\/dt>\n<dd><p>Markers are generated when the page is rendered and are displayed on the frontend. In the builder, a notice over the map shows how many markers were found.<\/p><\/dd>\n<dt id=\"which%20dynamic%20tags%20are%20added%3F\"><h3>Which dynamic tags are added?<\/h3><\/dt>\n<dd><p>{map_coords} returns \"lat,lng\" for the current post. It is the value to use in the marker Coordinates.<\/p>\n\n<p>{map_address} is only useful with the ACF OpenStreetMap Field source. It returns the label of the marker stored by that field: the address found when the editor searched for a place or clicked on the map, which they can edit. With latitude\/longitude fields it is always empty: display your own address field in the popup instead (e.g. {acf_address}).<\/p>\n\n<p>Outside a query map (e.g. in a single template), these tags use an ACF OpenStreetMap field named \"location\". Change it with the brxlm\/default_context filter.<\/p><\/dd>\n<dt id=\"does%20it%20work%20on%20multilingual%20sites%3F\"><h3>Does it work on multilingual sites?<\/h3><\/dt>\n<dd><p>Yes. With WPML or Polylang, the technical settings of the plugin (post type, field names...) are excluded from translation, so a translated page uses the same query as the original.<\/p><\/dd>\n<dt id=\"can%20i%20customize%20the%20query%3F\"><h3>Can I customize the query?<\/h3><\/dt>\n<dd><p>Yes, with the brxlm\/query_args filter:<\/p>\n\n<pre><code>add_filter( 'brxlm\/query_args', function ( $args, $settings, $element ) {\n    $args['orderby'] = 'title';\n    return $args;\n}, 10, 3 );\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Display one marker per post on the Bricks Map (Leaflet) element, from an ACF OpenStreetMap field or latitude\/longitude fields.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/396862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=396862"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/louischan"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=396862"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=396862"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=396862"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=396862"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=396862"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=396862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}