PHP the_content() function wordpress errors

Solution:1

maybe u need use this function get_extended() WP Codex

 

it Return Values

 

(array) Post before (‘main’) and after (‘extended’).

Solution:2

You can also try something like this :

 

$morestring = ‘<!–more–>’;

$explode_content = explode( $morestring, $post->post_content );

$content_before = apply_filters( ‘the_content’, $explode_content[0] );

$content_after = apply_filters( ‘the_content’, $explode_content[1] );

 

Hope it helps you some extent.