Show Content Only to Logged-In Users using a shortcode in WordPress 

From http://wp.smashingmagazine.com/2011/12/07/10-tips-optimize-wordpress-theme/