• Home
  • /
  • Blog
  • /
  • WordPress Post Slug: Use It Efficiently

I never paid much attention to the post slug feature inside WordPress, until recently when I submitted a guest post to Brian over Copyblogger. The post was titled “Six Common Punctuation Errors that Bedevil Bloggers.” The URL, however, was http://www.copyblogger.com/punctuation-mistakes/.

When I saw that I realized the potential of this little feature. So simple, yet so useful.

If you publish a post on WordPress without specifying the post slug, it will create a URL that is equal to the post title (provided you are already using an optimal URL structure). Most of the times, however, that URL will not be search engine optimized.

You probably want to write your headlines and post titles with humans in mind. After all, you need to make them catchy and motivate the reader to check the rest of the content. The same is not true for URLs. While a clean URL structure that contains a description of the page might benefit even human users, usually they are more relevant to search engines.


That is where the WordPress post slug feature comes into play. On the little box that appears on the right of your text editor you can manually set the URL structure for that post. As you can see from the example I mentioned, Brian knew that many of the words used in the title of the post would not be used by users searching for similar information. He decided, therefore, to use just the keywords “punctuation” and “mistakes” in the URL.

When crafting your post slug try to focus on the keywords that are used on popular search queries, and remember that the fewer keywords you use, the higher their relative value.

Some people were already aware of this trick, but I think it was worth sharing.


You may also like

MDHearingAid Review

MDHearingAid Review

Best Gold IRA Companies

Best Gold IRA Companies

Regal Assets Review

Regal Assets Review

About the author 


Daniel Scocco is a programmer and entrepreneur located in São Paulo, Brazil. His first company, Online Profits, builds and manages websites in different niches. His second company, Kubic, specializes in developing mobile apps for the iOS and Android platforms.

  1. Thank you for the explanation of the slug. I am just starting blogging and when I was trying to make a Pretty Link it asked what was the slug. I have been trying all day to find it, and when I did what to put in it. Thanks everybody for the posts, I sure learned from everyone!

    Slugging on,……..


  2. I know I am late to this post, but I am building a new blog and as I was entering the categories, I once again pondered the use of the slug. It is an item that has never been clear to me. Should I use a hyphen, should I use an underscore, or should I run the keywords together?

    Your post at least gives me some insight into the potential power of slugs – thank you! There is surprisingly very little out there about slugs and their use.

    I think Dave may be right – only testing will tell if it matters how I configure them.

  3. Good information here, I have just created a wordpress blog and the features and functionality look mind numbingly complicated when compared to the livejournal account options that I have, so this little explanation was welcomed, thank you 🙂


  4. Valuable advice to help the search engines find my blog. Question: I’ve got 150+ posts behind me. Should I bother tinkering with them to carve out the stop words and thus hopefully make them more web search friendly?

  5. Excellent article on WordPress post slug. Slugs have been a hole in my knowledge… and some of my URLs show it!

    As for who’s correct, Daniel or, uh, Daniel… I’m going to throw some fuel on this and say: Without testing, it’s simply opinion.

    In any case, thanks again for the article and hosting the conversation. I definitely learned something.

  6. HelloNingbo,

    Darn if you’re not right! Very important post of yours. That’s so unobvious of WP! Everything else is checked by default, except that, and you’d never know there is such a thing and where to find it.

    The default post slug seems to be the post name (with hyphens between words). I am using post #s for my URLs (ex. /?p=503) and not permalinks with words. I’ve now modified the slug and the URL is still my post #, not the slug, so we’re ready for Daniel’s excellent advice about focusing on key words to work.

  7. THANKS for this useful post !

    @Jane H: In fact I also looked for this “post slug” options 🙂
    But in WP 2.7, it is hidden by default, so you must first click on “screen options” (top screen), then a menu scroll down and then you can select it.
    Be careful that it will display the field at the bottom of the page.

    Now honestly I don’t really see the difference between “post slug” and “permalink” (?) When u change one, the other changes too (!)
    So I prefer to modify the permalink by editing it. Handier as just located under the main title on top of page…

  8. I am looking everywhere and do not see anything for Post slugs. I see category slugs, and tags, but no post slugs. Have things changed for 2009?

  9. It’s probably just me, but I can’t find how to edit the slug either in new or old pages in 2.6…. there’s nothing under the title – the only edit button is for the timestamp, and I’ve been through the advanced options…

  10. @Pokerlover, if you use WP 2.5 you will find this right below the post title, click on “edit” there.

  11. I was just like, until this week I ignored that little “post slug” option in the right side bar of the page. Then I wrote an article with a long title and tried the post slug and immediatley saw the potnetial benefits in it. I will be using it from now on for all new posts!


  12. I knew very well about this, but never really thought of implementing it in a meaningful way. This is good advice and I appreciate it.

    @ bmunch, yes I think one will have to watch out of slug clashing. When you let WordPress handle it, you have nothing to worry about, but when you go and edit each slug, you might find yourself using a slug you used a while ago and forgot about.

    Like anything, using this effectively will take some good self-management. 🙂

  13. Now I know what that is for, just tried it out quickly on my last post. Great now I can have good titles for humans.

    Thanks for pointing that out.

  14. That’s so awesome! I wondered why making a post with one title and then changing it later on produced a url with the old title. Then a quick look at one of my most recent posts showed that the slug field was filled in. This means that when left blank, wordpress fills in the slug field for you.

    I’m going to use the heck out of that! That is amazingly useful… especially when my titles tend to be so long and the urls can get really messy. Thanks a million!

  15. Daniel, thank you for clarifying the issue. I meant to say something like this, but messed up in conveying it. And your explanation added to my understanding of this subject, too.

Comments are closed.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}