I just noticed, both echo and return works fine for displaying content from a shortcode function in wordpress.
echo
return
function foobar_short
I would use:
function foobar_shortcode($atts) { return "Foo Bar"; //so does this }
It is easier when you're doing things like:
$output = '' . do_shortcode('foobar') . ''; echo $ouput;
Later on..