How to Display Properly Formatted Content From a $post Object in WordPress

How to Display Properly Formatted Content From a $post Object in WordPress

Occasionally, I’ll run into a situation where I need to call a post specifically using the get_post() function.  get_post() returns a Post object, with a number of member variables – the one that stores the actual content of the post being post_content. However, if you try just echoing $post->post_content, you’ll get completely unformatted text – which [...]