0

Is there a way where I can get the default output of the_content in WordPress post? Some of the plugin is using add_filter to the content to add their desired result like related post plugins where they add the result at the end of the content of a post. What I want to happen is to get the default formatting functions of WordPress without any additional filters from other plugins.

1

Yes you can access the post_content property in the loop from the $post object

if ( have_posts() ) : while ( have_posts() ) : the_post(); 
  echo $post->post_content
endwhile; endif;

Mention that the post_content is coming straight from the database. All 'the_content' filters will not be applied.

For more properties see the post codex

  • Thanks for responding @s_ferdie but what I want to get is the default post_content with just the filters coming wordpress core. – user1645213 Oct 10 '15 at 17:32

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.