Pages

how to display the limit the amount of characters in wordpress post

Wednesday, 25 September 2013

<?php $content = get_the_content();
      $content = strip_tags($content);
      echo substr($content, 0, 205);
?>…<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><strong>read more</strong></a>
 

Most Reading