WordPress.org

Ready to get started?Download WordPress

Forums

Excerpt limit on certain page (1 post)

  1. roiabrazaldo
    Member
    Posted 9 months ago #

    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

Reply

You must log in to post.

About this Topic

Tags

No tags yet.