Found this in another plugin
Code:
// Add the shortcode once for each map
$shortcodes = "";
foreach($maps as $map)
$shortcodes .= '<p>[mappress mapid="' . $map->mapid . '"]</p>';
if ($autodisplay == 'top')
return $shortcodes . $content;
else
return $content . $shortcodes;
}
So I guess I need to change a few things and use $content . $shortcodes;
Why didn't I ever take the time to learn php?
