Ashley Cameron Design

Ashley Cameron Design

Trim/Limit WordPress Content

SnippetsWordPress

About a 1 minute read

"The art of living… is neither careless drifting on the one hand nor fearful clinging to the past on the other. It consists in being sensitive to each moment, in regarding it as utterly new and unique, in having the mind open and wholly receptive."

Alan Watts


1
2
3
4
<?php
   //set the # to the how many words you want
   echo wp_trim_words( get_the_content(), 100 );
?>