Tet banner

Custom Fields
Support MB Elementor Integrator Render OpenStreetMap for Archive/Pages (Elementor or any)

  • Creator
  • #18650
    Resolved Trang Nguyen

    I'm creating a directory site so it is very important to have a map on it.

    Let say I have places in Hanoi, Madrid, Paris.
    I created 3 pages with Posts of Elementor Pro to show places in 3 cities (one page for one city, I don't want to show all of them in 1 page).

    So here I'm getting stuck with 2 issues:

    1. Is there any way to show maps that content places of these cities (one map for one city)? I use OpenStreetMap, not Google Maps.
    2. How to connect the map with Posts element and FacetWP (to filter the posts)? So when people check/uncheck the FacetWP filter, the markers on the map will change also.

    Thank you very much for your help!

Viewing 1 replies (of 1 total)
  • Author
  • #18659
    Anh Tran


    1) To display map for cities (one per city), you can use the rwmb_meta helper function. If you want to display all cities on a map, please see this tutorial.

    2) Unfortunately, FacetWP can't filter by maps. You should make it filter by other fields (cities, wards, etc.), and the map will be displayed accordingly.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.