Trim words via php, cut header or content in wp template, show exact number of words:
<?php echo wp_trim_words(get_the_content(), 40); ?>
All for Web
Trim words via php, cut header or content in wp template, show exact number of words:
<?php echo wp_trim_words(get_the_content(), 40); ?>
You must be logged in to post a comment.