- This topic has 3 replies, 2 voices, and was last updated 10 months, 1 week ago by .
-
Topic
-
Hi, I have a custom post type (attraction) with a text field (att_address) and an OpenStreetMap field (att_osm).
I set this in Views to query posts:{% set args = { post_type: "attraction", category_name: post.slug } %} {% set posts = mb.get_posts( args ) %} {% for key, post in posts %} <h3>{{ post.post_title }}</h3> <p><strong>Address: </strong>{{ post.att_address }}</p> <a href="{{ mb.get_permalink( post.ID ) }}">Read More</a> {% endfor %}
I would like to have a map with all the markers of the posts from this query but I really don't have any idea how to do it.
Please help!
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.