Last active
September 29, 2017 18:15
-
-
Save leavlzi/5bbd7994a22a707d62c467a2c9921dbf to your computer and use it in GitHub Desktop.
Function to make custom excerpt
This file contains 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
//Replace | |
<?php the_content(); ?> | |
//with | |
<?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 120,"......"); ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment