Skip to content

Instantly share code, notes, and snippets.

@mattboon
Created December 4, 2012 09:34
Show Gist options
  • Save mattboon/4202188 to your computer and use it in GitHub Desktop.
Save mattboon/4202188 to your computer and use it in GitHub Desktop.
WordPress - Split content above and below <!--more--> tag
<?php
$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] );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment