[Plugin: Geo Mashup] Use GEOMashup with filter
-
Hello,
I am using GEOMashup on a page to display projects world wide. I created a CPT Projects and the map displays nicely on there. I can select a spot where the project is, just like I want it. So far so good.
Now comes the issue.
I want to display the map on archive-projects.php. I use this code for that:
$i = 0; if (have_posts()) : while (have_posts()) : the_post(); $i++; echo GeoMashup::map('load_empty_map=true&height=400&width=700&zoom=1&auto_info_open=false'); if($i=1) break; endwhile; endif;
This somehow seems odd. Isn’t there a way to add the map, without having to break the while? Because if I don’t, the map shows up for the number of posts it selects.
Now my real issue: I have a filter. To select projects, based on country, company and some other arguements. I would like for only the filtered projects to be shown on the map.
Is there any possible way to accomplish that? And if so, could you please give me a nudge in the right direction? ??
in other words: Is it possible to somehow make geoMashup show only the selected posts.
- The topic ‘[Plugin: Geo Mashup] Use GEOMashup with filter’ is closed to new replies.