Created
August 26, 2019 09:14
-
-
Save kibria-khandaker/50a19b6b9f7e1df6d9c5b713d20a670d to your computer and use it in GitHub Desktop.
replece the_excerpt code with $text_limit code where are you used <?php the_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
<?php the_excerpt(); ?> | |
replece the_excerpt code under the with $text_limit code where are you used the_excerpt | |
<?php | |
$text_limit = substr(get_the_excerpt(), 0, 100); | |
echo $text_limit; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment