[resolved] Number of Row in Slider (4 posts)

  1. imagipop
    Posted 1 year ago #


    How can I resize the number of the row displayed in the slider text ?

    Thank you

  2. Silkalns
    Theme Author

    Posted 1 year ago #

    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.

  3. imagipop
    Posted 1 year ago #

    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 ?


  4. imagipop
    Posted 1 year ago #

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

    Thank you


Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic