What Is A Post Slug?
April 10th, 2008I have a missing blog post somewhere. Could’ve sworn I wrote about this before in the past but can’t find it in the archive? Crazy. Oh well, it’s a good excuse to post to the blog
What in the world is a Post Slug? Awfully funny name that makes me think of slimy mollusks.
Post slug is a feature in WordPress that allows you to change the URL of your blog entries. But before we go further, I need to back up a bit. You see, if you have configured your WordPress blog to use your post title as part of your URL, this is what your URL will look like.
http://myblog.com/my-post-title
Sometimes, you have a funny or long post title, making an awfully awkward URL like this:
http://myblog.com/my-post-title-is-insanely-long-dont-you-think-its-ridiculous
Using Post Slug, you can shorten that or throw in a keyword or two to help your SEO efforts. So what you do is enter the following into the Post Slug area found in your post page. It’s on the right if you are using WordPress 2.3 and under

On WordPress 2.5 and above it’s right under the Post Title

Now, save the post and your URL will be a nice, neat
http://myblog.com/no-more-long-urls
Pretty cool huh?
Related Entries
- Page To Post, Post To Page
- Before You Post
- WordPress Post Revisions: Turning It Off
- Ping! But Don’t Rely On Only One Service
- Podcast Guest

How To Use Technology To Improve Your Marketing And Productivity
April 10th, 2008 at 5:32 pm
Simple and to the point! Thanks so much Lynette!
April 10th, 2008 at 5:41 pm
It’s very very cool not just pretty cool
So here’s a little problem. You can go back and change posts that you have already done in the past.
By the way, the date is usually part of the title on the permalink. What do you think about the date as part of the title?
Another post that I love.
April 10th, 2008 at 5:43 pm
oops sorry, I meant to write you can NOT go back and change the slug once you have already published post.
I tried and google can’t find it.
April 10th, 2008 at 9:13 pm
Thanks Lynette,
I have used WordPress for a long time, but never really knew what the Post Slug was.
Thanks
Jack
April 11th, 2008 at 9:48 am
That is so cool Lynette I always wondered about that.
April 11th, 2008 at 12:09 pm
@Annette & @Jack: you’re welcome.
@Myrna: You can change the slug once it is published BUT keep in mind people or search engines referring to your old URL will get a 404 page not found error. So it is not wise to do this on old posts.
As for dates in the URL, I used to have them. Here’s a post about dates in URL I made a few months ago.
April 12th, 2008 at 8:24 pm
Awesome - I always wondered what that Post Slug was about! Thanks for explaining.
April 14th, 2008 at 1:22 am
I just recently noticed the Post Slug hidden away and it sure comes in handy. My URLs were so long for emails, posting to Twitter, etc. This keeps me from having to redirect every link first.
June 7th, 2008 at 12:23 am
Wow, this is great! I just started blogging on WP so this tip is really helpful for someone like me. Thanks again!
June 11th, 2008 at 10:13 am
Glad it helps Stephanie