WordPress.org

Support

Support » How-To and Troubleshooting » Excerpt limit on certain page

Excerpt limit on certain page

  • Excerpt limit on certain page

    How can I make my excerpt limit different on multiple page?

    I’m currently using this

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

    which applies globally, but i want certain pages have longer excerpt

  • The topic ‘Excerpt limit on certain page’ is closed to new replies.