the_content

Display the post content.

Description

the_content( (constant) $more_link_text = null, (constant) $strip_teaser = false ); 

Parameters (2)

0. $more_link_text — Optional. (constant) => null
Content for when there is more text.
1. $strip_teaser — Optional. (constant) => false
Strip teaser content before the more text. Default is false.

Usage

  1. if ( !function_exists( 'the_content' ) ) { 
  2. require_once ABSPATH . WPINC . '/post-template.php'; 
  3.  
  4. // Optional. Content for when there is more text. 
  5. $more_link_text = null; 
  6.  
  7. // Optional. Strip teaser content before the more text. Default is false. 
  8. $strip_teaser = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = the_content($more_link_text, $strip_teaser); 
  12.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/post-template.php  
  1. function the_content( $more_link_text = null, $strip_teaser = false) { 
  2. $content = get_the_content( $more_link_text, $strip_teaser ); 
  3.  
  4. /** 
  5. * Filters the post content. 
  6. * @since 0.71 
  7. * @param string $content Content of the current post. 
  8. */ 
  9. $content = apply_filters( 'the_content', $content ); 
  10. $content = str_replace( ']]>', ']]>', $content ); 
  11. echo $content;