An article I posted recently has a bit of a problem. The article is titled What Influenced Your Blogging Platform Choice.
Now, take your mouse and move it over the link. If you have your status bar enabled on your browser, you will see the following URL in the status bar:
It should be:
When you write a title in the Write Post panel of WordPress, and you are using permalinks, which is the default on WordPress.com blogs and an option for full version WordPress blogs, WordPress turns the title into the link to your post.
At the last minute, I changed the title from “What Article Influenced Your Blogging Platform Choice” to “What Influenced Your Blogging Platform Choice”. I forgot to do part two of what it takes to change a title on a published post in WordPress.
Paying Attention to Your Post Slug and Title
When you are working on a post in draft mode, the URL of the post is not created. It is created when you publish the post. When you hit the Publish button, WordPress takes the title of the post and cleans it up and turns it into part of the post address or URL.
Let’s say that this is the title of your post:
It's Sadie's Day for preparin' for Nancy's Visit - I hope!
After hitting the Publish button, WordPress would clean it up and turn it into this:
WordPress cleans up the title by removing apostrophes, quote marks, and other characters which can do bad things to a link if left in.
This might not be what you want as the permalink URL. You might want to change it. You could add a “g” to “preparin” or do something even more drastic.
The Post Slug is located in the right sidebar of WordPress. If the section isn’t open, click the plus symbol to expand it. To change your Post Slug, simply type in the new title or URL with dashes in between each word, no spaces. An extreme fixed version of this example might be:
The Post Slug does not have to be the title. You could change it to “the-terrible-day” or whatever you want. But remember, it only appears after you’ve hit the Publish button, so you will have to edit the post after its been published. Which was the cause of my mistake.
The trick to changing your permalink URL is to set the Post Timestamp to a future date or time before you hit PUBLISH. This way, the post is published but “not yet”. It’s held in the cue for posting when that date and time comes. Since it isn’t out in public eye, you can edit the post and change the Post Slug to whatever you want. You can set the time for 10 minutes ahead or three weeks. Whatever you need to make the change to the Post Slug.
In my faulty Post Slug case, because future posts are still not working on WordPress.com blogs, I have to click Edit, then SAVE after the publish time and date in order for them to post. I did this and at the last minute, I took the word “Article” out of the title, then hit SAVE and headed out the door.
Two days later, after people have linked to the post and left comments on it, I realize that the permalink URL is different from the title. If I change it, it will break links all over the place. So what should I do? Let’s look at my choices, and yours, when it comes to changing a permalink post slug.
- Change the Post Slug, which will change the URL, which will break links to the article. I can either trust others to detect the broken link (ha!) or notify everyone I find in the trackbacks and incoming links list that I’ve changed the URL. However, this is time consuming and reliant upon others to fix their links. And how can I ever find all the links to the post that might come from non-trackback powered sites?
- Change the Post Slug and add a ReDirect to my .htaccess file. This is probably the best all around solution. I can set a ReDirect code in my .htaccess file in the root directory which will redirect the incoming “wrong” link to the right “new” link and no one would notice. I would do this on my full WordPress site and not think about it, but on WordPress.com, I don’t have any access to my files, root directory, or anything under the hood. So this isn’t an option for this blog.
- Leave it alone. This is probably the best answer, as it doesn’t really matter what the URL is as long as it gets to the post. It does, however, matter what the title is representative of the article and helps readers understand what the post is about.
Me? I choose to leave it alone and use it as a lesson to everyone to be careful when messing with Post Slugs and remember the two step solution to fixing them. And let this article serve as a reminder to myself not to mess around with my Post Slugs.😉