Function for custom-length excerpts in WordPress