Limiting the number of words or characters in Wordpress slug/permalink. I would like to limit the number to the first 5 words (or 20 characters) even if the post title is longer.
example:
Title: Welcome to my site - this is my first post
url: mysite.com/welcome-to-my-site
Some function or alteration in the core Wordpress to achieve this result?
Thank you.