Limit length of a wordpress post (3 posts)

  1. vasujain
    Posted 3 years ago #

    My blog http://windowsvj.com/wpblog/ has a strange way of presenting the blog posts. It displays complete (full length) of blog posts.

    What i want is to post an excerpt or a teaser of say 100 characters or 2-3 images and then have a read more link that makes user go to next page.

    However i am not bale to modify the code/ find any plugin which solves my need.

    I need help regarding the same. Thanks.

  2. Christopher Anderton
    Posted 3 years ago #


    Maybe try this (goes in you functions.php file):

    function custom_excerpt_length( $length ) {
    	return 20;
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    More at http://codex.wordpress.org/Function_Reference/the_excerpt

  3. LandisTwo
    Posted 2 years ago #

    Christoper... Thank You!

    I am not a fan of having to put the 'more tag' in...
    I styled it in style.css, but still not a fan...


Topic Closed

This topic has been closed to new replies.

About this Topic