Skip to content

Instantly share code, notes, and snippets.

@kingkool68
Created September 18, 2013 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kingkool68/6609735 to your computer and use it in GitHub Desktop.
Save kingkool68/6609735 to your computer and use it in GitHub Desktop.
Filter to make the <!--more --> tag do it's thang anywherez.
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