Modify the_content after the more tag

I think you can use the get_extended( $post ) function; that returns an array with different parts of the content. See this example which works inside the Loop:

$content_arr = get_extended( get_the_content() ); 
var_dump( $content_arr );
echo $content_arr['main'];  //Display the part before the more tag

Leave a Comment