There is the_content() in one of the template files which, well, prints the content. I get the content with get_the_content() manipulate it and print it.

However, I couldn't figure out which action or filter to use to prevent the_content() being called in the template file (single-post.php). I do have child template, but for some reasons, I don't want to manipulate the template file for single posts.

1 Answer 1


If you look at the codex (here) you'll see that the_content() is just a wrapper for get_the_content() which passes it through the the_content filter. So, you too can hook into that filter to change your content output without having to edit the theme files.

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .