If you make WordPress theme, the chance is you want to change
the_excerpt() length and remove/replacing it’s
Here’s the easy way to do it using the power of WordPress filters. What we’re going to do is replacing
… and changing the excerpt’s length into 20 words. This is just an example tho, you can change these into anything you want.
Simply paste this on your
If you need to customize more stuff on
the_excerpt(), you can find more filters to be filtered at
Don’t forget to replace the functions’ prefix tho ↩