Created
September 18, 2013 14:13
-
-
Save kingkool68/6609735 to your computer and use it in GitHub Desktop.
Filter to make the <!--more --> tag do it's thang anywherez.
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
add_filter('the_excerpt', 'we_aint_got_time_for_more'); | |
function we_aint_got_time_for_more($the_original_excerpt) { | |
global $post; | |
return explode('<!--more-->', $post->post_content)[0]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment