Reply To: Display all current queries on the map

Home Forums MapPress Support Display all current queries on the map Reply To: Display all current queries on the map

#11908
Chris
Keymaster

Hi,

The “&” needs to be there, but only if there’s a search.   Here’s the code with that change.  I also added an “echo” at the bottom so you can see the page parameters:

<?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"]');

	echo "<br/>";
	echo "This is the request on the page: " . print_r($_REQUEST, true);
?>