Slug Control

Created by: Mark Jaquith

Rating:
Downloaded: 2k times

Isn’t it annoying when you craft a post title, and then the URL slug kind of falls short? Like, if your title is Breaking: Yankees win 3-2 in extra innings. I’m excited & literally can’t even and your post slug turns out like breaking-yankees-win-3-2-in-extra-innings-im-excited-literally-cant-even. “3-2” is ambiguous because all the words are already separated by dashes. “im” is not a word. “cant” means something else. The ampersand meaning “and” just got dropped. The leading “breaking-” will be silly when the date part of the URL is 3 years old. The whole URL is off. Doesn’t this make more sense? yankees-win-3-to-2-in-extra-innings-i-am-excited-and-literally-cannot-even. Sure it’s really long (and a future version of the plugin will help with that!), but it reads much better.

Contribute

Contribute to this plugin on GitHub:

https://github.com/markjaquith/slug-control/issues

Screenshots

    Categories

    Get New Themes & Resources