Reply To: Mushup php current category

Home Forums MapPress Support Mushup php current category Reply To: Mushup php current category

#12363
Chris
Keymaster

Hi, try adding ‘echo’ before do_shortcode:

$category_id = get_query_var('cat'); 
$shortcode = '[mashup query="cat=' . $category_id . '&posts_per_page=-1"]'; 
echo "Map of shortcode $shortcode" . "<br/>"; 
echo do_shortcode($shortcode);