WordPress.org

Ready to get started?Download WordPress

Forums

Specify max characters in description of article on a specific page? (3 posts)

  1. Keenanv
    Member
    Posted 5 years ago #

    I was wondering if it's possible to use this:
    <?php the_content('Read more &raquo;'); ?>

    to set a maximum amount of characters to display before the "read more".

    Thanks in advance!

  2. Keenanv
    Member
    Posted 5 years ago #

    Nevermind, got it :)
    <?php echo substr(the_content($before = '', $after = '...', FALSE), 0, 40); ?>

  3. Keenanv
    Member
    Posted 5 years ago #

    err - is not working :(

Topic Closed

This topic has been closed to new replies.

About this Topic