only on one point on the website I need a custom excerpt, only 20 words instead of the normal 40.
but of course its applying to all excerpts.
So I tried to apply the filter only once:
but I dont get the syntax...tried something like:
echo apply_filters('the_content', excerpt_length, custom_excerpt_length, 999);
and its obviously wrong.
And in the end I thought I could just simply shorten the text with simple php substr:
echo substr(the_content(), 0, 20);
echo substr(the_excerpt(), 0, 20);
echo substr(wp_trim_excerpt(the_content()), 0, 20);
But NONE of this is working, its like the substr command is completly IGNORED, so I am kind of stuck here, and really dont get why substr() isnt working at all.
You have an idea?