Skip to content

Instantly share code, notes, and snippets.

@dturton
Last active August 29, 2015 13:56
Show Gist options
  • Save dturton/8959430 to your computer and use it in GitHub Desktop.
Save dturton/8959430 to your computer and use it in GitHub Desktop.
split wordpress content into two columns at the more tag
$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