Create Post Slugs

and like us on FB

The function below will show you how to make a search engine optimised slug for a category or post title with the same output that you will get from WordPress’ sanitize_title_with_dashes function.

All three functions are required.

Usage

Returns: this-is-a-cool-title.