Created
April 19, 2017 12:25
-
-
Save marcusandre/d6b05156ce2aa27f149a2b926f1a0869 to your computer and use it in GitHub Desktop.
Fuck you wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$delim = '<!--more-->'; | |
$content = explode($delim, $post->post_content); | |
$content_before = apply_filters('the_content', $content[0]); | |
$content_after = apply_filters('the_content', $content[1]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment