Home › Forums › MapPress Support › Display all current queries on the map › Reply To: Display all current queries on the map
March 7, 2013 at 6:27 am
#11905
Hi,
Ah, I see what you mean now. I’m sorry, but when you use “current” the plugin takes the original query results exactly. It’s not possible to modify its parameters because it doesn’t re-run the query.
Maybe you could instead modify your do_shortcode() to use the query arguments from the page.
For example the parameter ‘s’ in the page URL is usually the search. This would then show you all hotels matching the current search (like “Paris”):
<?php $s = isset($_REQUEST['s']) ? "s=" . $_REQUEST['s'] : ""; $query = "post_type=hotels&posts_per_page=-1&" . $s; echo do_shortcode('[mashup query="' . $query . '" width="1050" height="350"]'); ?>