Title: Increasing excerpt length
Last modified: May 7, 2022

---

# Increasing excerpt length

 *  Resolved [Haldan](https://wordpress.org/support/users/hblecher/)
 * (@hblecher)
 * [4 years ago](https://wordpress.org/support/topic/increasing-excerpt-length-2/)
 * I’ve tried changing the default excerpt length that wordpress uses by adding 
   the following code to functins.php
 *     ```
       add_filter( 'excerpt_length', function($length) {
           return 80;
       }, PHP_INT_MAX );
       ```
   
 * But this does not seem to affect the excerpts used in the featured post slider.
   Any insight into what I should be doing to increase the excerpt length used in
   the slider beyond the standard 55 words?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fincreasing-excerpt-length-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Gabor](https://wordpress.org/support/users/nextendweb_gabor/)
 * (@nextendweb_gabor)
 * [4 years ago](https://wordpress.org/support/topic/increasing-excerpt-length-2/#post-15625404)
 * Hi [@hblecher](https://wordpress.org/support/users/hblecher/)!
 * Have you saved on your post after modifying the excerpt length? Because I think
   WordPress only updates the excerpt at this process.
    Within our codes we are 
   using the get_the_excerpt function: [https://developer.wordpress.org/reference/functions/get_the_excerpt/](https://developer.wordpress.org/reference/functions/get_the_excerpt/)
   that WordPress gives, to know the excerpt of a post. If your code modification
   doesn’t works, your theme might controls the excerpt length in a way, that you
   cannot overwrite it, for example with remove_filter they can remove all excerpt_length
   filters. In this case what I suggest is, that instead of excerpt you could use
   the actual content of the post. As you see here:  you can use “Split by chars”
   to create a character number limitation within dynamic slides.
 *  Thread Starter [Haldan](https://wordpress.org/support/users/hblecher/)
 * (@hblecher)
 * [4 years ago](https://wordpress.org/support/topic/increasing-excerpt-length-2/#post-15628948)
 * Thank you, I needed to delete the slide and start it over again, at which point
   it pulled the correct number of words from the excerpt (based on the code I inserted
   above). It just wont change dynamically.
 * Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Increasing excerpt length’ is closed to new replies.

 * ![](https://ps.w.org/smart-slider-3/assets/icon.svg?rev=2307688)
 * [Smart Slider 3](https://wordpress.org/plugins/smart-slider-3/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-slider-3/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-slider-3/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-slider-3/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-slider-3/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-slider-3/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Haldan](https://wordpress.org/support/users/hblecher/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/increasing-excerpt-length-2/#post-15628948)
 * Status: resolved