Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Silkalns

    (@silkalns)

    You can create excerpt length filter to automate this process. Here is one example

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

    Or read more about it here: http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_length

    Much simpler solution is to use add text manually in “Excerpt” field which you can find under each Post edit field. If this options is not there, you can enable it via “Screen Options” if it is not there by default.

    This way WordPress will display the entire text as Excerpt no matter of its length. 1 word or entire post.

    Thread Starter imagipop

    (@imagipop)

    Thank you Silkalns,

    I use only Pages and not Post, this functionnality provided by wordpress seems works only for Post.

    Can I call the function from a Page and if yes, how ?

    Didier

    Thread Starter imagipop

    (@imagipop)

    in fact I added your code at the end of the functions.php file of the theme and it works fine.

    Thank you

    Didier

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Number of Row in Slider’ is closed to new replies.