added shortcode and posts functions