I have an issue when using the_content() -- the footer of the page disappears and no errors are displayed.

When I change the_content() to get_the_content() and echo this results then it works fine.

What's the issue behind this scenario?


An important difference from the_content() is that get_the_content() does not pass the content through the 'the_content'. This means that get_the_content() will not auto-embed videos or expand shortcodes, among other things.

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 and you will remove those tags.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.