<?php | |
$content = get_the_content(); | |
$trimmed_content = wp_trim_words( $content, 40, '<a href="'. get_permalink() .'"> ...Read More</a>' ); | |
echo $trimmed_content; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment