ah okay – the filter will work with the automatically generated excerpt only?
yep – I have added the_excerpt() but I don’t mean the more-tag sorry.
I meant if the excerpt field is empty in the backend for a page then I will get the correct length from the content. But I want to use the excerpt field.
yep, the same problem with posts.
EDIT: but if I use the more-tag, it works correctly
I can replicate it in the Twenty Ten theme.
So I think this could be a bug for the page excerpt if you use a excerpt and not the more-tag.
this is what I added, but after I have added the first piece of code the filter excerpt_length doesn’t work anymore.