This is great for showing just the raw content... Get post content from outside the loop But i'd also like to apply shortcodes from various plugins to my content to affect the content. What would I need to do to allow this?
Well, you can do this with much less code:
echo apply_filters( 'the_content', get_post_field('post_content', $post_id) );
You can also use
get_post_field function to get other fields like
post_title, and so on.