Slider excerpt length

  • post manager


    I want to change the slider excerpt length only, and make it shorter, without changing the regular excerpt length in posts.

    Can you help me with that?



    Kenneth John Odle


    Moved to Support. Please be sure to post in the correct section.

    Unfortunately, this really isn’t possible. The slider used the the_excerpt() function used throughout WordPress, so you can’t change the excerpt length in the slider without changing the excerpt length everywhere else.

    However, you say that you want to make the excerpt in the slider shorter. Is this so that it fits? If so, you can always make the slider larger. There have been plenty of threads about that here, so if that’s a solution for you, the information you need is definitely available.

    post manager


    Thank you for the quick response.

    Making slider larger, in order to fit excerpt, doesn’t make sense. A bigger slider changes the site layout, messes with the columns, which is not practical.

    I know that there is a way to create more than 1 excerpt type within the functions.php.

    Then, the slider may use the new excerpt length and while rest of the site uses the generic excerpt length.

    I just don’t know how to do it.

    Thanks again


    Syahir Hakim


    Actually, the slider sets a global variable $in_slider, so you can user that to selectively alter the excerpt’s length.

Viewing 5 posts - 1 through 5 (of 5 total)

  • You must be logged in to reply to this topic.
Graphene Themes Forum