'', 'wrapper' => 'yes', ), $atts ); if($a['id'] == '') return "Error - please make sure to include an ID when using this shortcode!"; if($a["wrapper"] == "yes") { return '
' . do_shortcode(get_post_field('post_content', $a['id'])) . '
'; } else { return do_shortcode(get_post_field('post_content', $a['id'])); } } // Initialize the shortcode defined above after WordPress is done initializing add_action('init', 'nxt_add_custom_shortcodes'); function nxt_add_custom_shortcodes() { add_shortcode('nxt_content', 'nxt_content_shortcode'); }