the_excerpt is working but not excerpt_length

FYI, I did just add support for add_post_type_support in case that matters, but I noticed this a couple of months ago. My theme is based on _s, here is what I have in my functions.php file:

function tower_set_excerpt_length(){
    return 40;
}

Here is what is inside my content-posts template part for single.php:

<div class="entry-content">
   <?php the_excerpt(); ?>
</div>

I am getting the excerpt for my blog post but it’s not getting cut off at 40 words and my excerpt is 44 words. I tried CTRL+F5 to clear my cache just in case it was that. Any idea what I need to do?

The link is to my blog page which has one post (site is only a few days old).

The page I need help with: [log in to see the link]



Source link