Home › Forums › MapPress Support › Mushup php current category › Reply To: Mushup php current category
April 25, 2013 at 6:51 am
#12363
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);