WordPress.org

Forums

Excerpt limit on certain page (1 post)

  1. roiabrazaldo
    Member
    Posted 1 year 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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.