• Resolved Haldan

    (@hblecher)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gabor

    (@nextendweb_gabor)

    Hi @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.www.ads-software.com/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

    (@hblecher)

    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.