WordPress Tip: the_content() vs get_the_content()
I’m pretty sure that we all know exactly what the
the_content( ); and
get_the_content( ); do in a WordPress template. If not, then refresh your memory over at the Codex.
So what’s the difference? The different is pretty simple actually. If you find yourself annoyed with formatting of the content, more specifically the added p-tags that WordPress puts into the content that you didn’t. Just use
get_the_content(); and you will remove those tags.