WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] Specific amount of characters output (2 posts)

  1. jkqonlm
    Member
    Posted 1 year ago #

    Hi,

    Is there a shortcode or someting else that can help me?
    I need the output of characters in '[display-posts]' to be specific?

    Like only output 20 characters of the title.

    Thanks! :-)

    http://wordpress.org/extend/plugins/display-posts-shortcode/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    You're able to control the length of the excerpt by placing this in your theme's functions.php file:

    /**
     * Change Excerpt Length
     *
     */
    function be_excerpt_length( $length ) {
    	return '20';
    }
    add_filter( 'excerpt_length', 'be_excerpt_length', 99 );

    More information: http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_length

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.