• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

nSiteful Web Builders

Building a Better Web - One Site at a Time.

  • Home
  • About
    • Testimonials
    • Resources
    • Partner With Me
    • Frequently Asked Questions
  • Web Sites
  • Online Marketing
  • WordPress Support
    • Customized WordPress Training
    • 60-for-60 Sessions
  • Web Applications
  • Blog
    • At-A-Glance
    • Blog Articles Grouped by Category
    • Case Studies
    • General
    • Portfolio
    • Reviews
    • Snippets
    • Techniques
    • Projects
  • Contact
    • Purchase Retainer Consulting Hours
    • About Retainer Consulting Hours
    • Book a Meeting with Jeff
    • Tell Me About Your Web Project
    • nSiteful Newsletter Archives
    • nSiteful Rewards

By Jeff - 12/7/2012
Cats: Techniques · Tags: WordPress

techniques

Shorten Your WordPress Slugs (Permalinks)

Last updated December 14th, 2012 at 12:43 am

Note: This article assumes you have configured your WordPress Permalink settings to include the post name. If your permalinks use the default setting, then (a) this tip doesn’t apply and (b) you really ought to change your permalink settings to include the post name!

When posting a blog article or page to your WordPress Web site, WordPress will automatically generate a "sanitized" slug which is the defining element of the post in its URL. Unless you manually edit that slug (which can be done in two ways, described below), the default slug will be the title of your post, with all letters changed to lowercase and all spaces and other special characters (commas, slashes, etc.) converted to hyphens or removed.

So, if your blog title is "Piano Lessons" and your Web site is "http://myblog.com", the URL to that page will look something like:
http://myblog.com/piano-lessons/

If your blog title is "Holiday Bazaar", the URL will look something like this:
http://myblog.com/holiday-bazaar/

Let’s suppose…

So, suppose you’re publishing a blog article about the lesson your learned about putting your online banking username and password on a sticky note attached to your computer monitor at work.

You might get creative and entitle your post, "Here’s something really, really stupid I did recently which I recommend you never do" Not a bad title, actually. If I saw title that in my newsreader (or Facebook newsfeed or Twitter timeline, etc.), I might be inclined to click and read.

So that’s the good news.

The bad news is that the URL for your post will be:

http://myblog.com/heres-something-really-really-stupid-i-did-recently-which-i-recommend-you-never-do/

Why is that bad?

  1. Broken Link Syndrome: That URL is so long that if you were to email it to a friend, there’s a chance your friend’s email program would break the link, preventing your friend from getting to the article.
  2. No key words: A Web page’s URL is one of it’s critical search engine optimization elements.

What’s a better URL?

How about…
http://myblog.com/keep-passwords-safe/
or even
http://myblog.com/avoid-sharing-online-banking-passwords/

You get the idea.

How to edit your slugs

Note: In each of the methods described below, the new slug you enter will be sanitized (letters lowercased, spaces replaced with hyphens, special characters removed) after you do the Update.

Method #1

Edit the slug right under the post title in the Edit Post page. Just click the Edit button and enter your new slug. (Click small images to enlarge.)

Method #2

If your screen options for Edit Post are set to display the slug section, find it somewhere on the screen and enter the new slug.

Method #3: Quick-Edit from the All Posts listing

Hover your mouse over the title of the post whose slug you want to change, and a little menu will appear under the title. Click on "Quick Edit" link.

This will expose a whole bunch of settings you can change without actually loading the Edit Post page. Type your new slug in the Slug box, and click Update. (Click image to enlarge.)

Voila!

Postscript: Changing Slugs Retroactively

You might be wondering…

Can I and should I go back and change some of my longer post slugs after the pages or posts have been published?

That’s a good question.

The answer is "probably yes". But here are a few things to consider before you change the slug of any post:

  • Losing people.
    If you emailed the original link to people, or posted it on Facebook — or anywhere else, for that matter — people who click on the original link will end up on your site’s Not Found page. This also applies if the original link of the page in question has been listed by search engines.
  • Losing some search engine mojo.
    If the original link of the page or post in question has already been indexed by search engines, it’s only a matter of time before those engines remove the link (which is, in a way, a good thing, since it’s a "bad" link). But until the search engines index the new link, you’ve lost a place in the search engine results. (Having people go to your Not Found page at least gets them to your Web site.)
  • Internal links.
    If you’ve manually linked to the page or post in question within the body of other pages or posts on your Web site, those internal hyperlinks will no longer be valid. (Small print: Unfortunately, WordPress’ native linking tool in the Edit screen hard-codes the URLs when you create hyperlinks. Some day, WordPress will probably fix that and use the IDs of posts in their linking tool, thus avoiding the broken link problem.)

HTH!

If you have questions or comments, please post them below.

Like what you see? Share with others and join my mailing list. No long-term commitment, unsubscribe any time.

Related Posts

  1. YouTube Embed in WordPress: How to embed a YouTube Video in WordPress
  2. What are WordPress Post Formats, and why should I care?
  3. Automatic “Visit Web Site” Links on WordPress Portfolio Posts
  4. WordPress Categories and Tags
  5. Things WordPress Doesn’t Do So Well: Tables

Reader Interactions

Comments

  1. Chad R. Allen says

    December 6, 2013 at 6:44 am

    Helpful post, Jeff. Thank you! I especially appreciated your comments about whether or not to go back and change a slug after a post has been published.

    Reply
    • Jeff Cohan says

      February 3, 2014 at 9:46 am

      Glad you found it helpful, Chad.

      Reply
  2. Suna Ram says

    February 2, 2014 at 1:30 pm

    Hello Admin,

    Well done for this helpful article. Can you please suggest me the perfect slug of the title. I mean to say that what should be there in slug section ? Can we replace default slug by keywords ? Can we remove few words from default slug for this ?

    So, please help me !!!

    waiting for your suggestion Admin.

    Reply
    • Jeff Cohan says

      February 3, 2014 at 9:46 am

      I like to keep slugs short. I like them to include keywords. I almost always edit the default slugs and remove unnecesary words. For this particular blog entry, for example, I removed the word “your”, which appears in the title but which isn’t needed in the slug (IMO).

      Reply
  3. Suna Ram says

    February 6, 2014 at 3:54 am

    Thanks a lot !

    I got my answer & its working good..

    Reply
  4. uche says

    April 16, 2015 at 10:47 am

    Very helpful Jeff, thank you. I try to make simple and easy to understand post so I am happy to see someone do a much better job.

    I hope to start adding screen shots too, it only get’s better.

    Reply
  5. Rashmi says

    May 14, 2015 at 5:36 am

    Had query about this slug shortening which has always been pointed up by my SEO analysis page. But got my query resolved after seeing your this post. Thank you so much!

    Reply
    • Jeff Cohan says

      May 14, 2015 at 9:04 am

      I’m glad it helped.

      Reply
  6. Deb says

    October 31, 2015 at 5:02 am

    Thanks so much, great info on slug role. Always wondered what it was useful for *smile*. Nice easy, well written explanation Jeff.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

mailchimp signup

Subscribe to get notified when new articles are published. Unsubscribe any time. No spam. I promise. Check out my newsletter archives.

social

Twitter Facebook LinkedIn

Recent Articles

  • Post-Specific CSS for WordPress October 5, 2026
  • You built an online course, but they haven’t come. September 16, 2026
  • Custom MemberPress Pricing Pages December 19, 2025
  • CSS Data Attribute Override December 11, 2025
  • MemberPress Rules Using Custom Taxonomies and Custom Roles December 10, 2025

Filter By Category/Tag

Categories

  • Case Studies (8)
  • For Staff (1)
  • General (73)
  • Portfolio (7)
  • Reviews (14)
  • Snippets (24)
  • Techniques (52)

Popular Tags

Advanced Custom Fields Blogging Child Themes Content Marketing CSS Customer Service Custom Fields Custom Post Types Diagnostics Domain Names Facebook FooGallery Genesis Hosting HTML Images iPhone Libra Live Chat Marketing Media MemberPress MemberPress Courses Membership Sites Mobile-Friendly MySQL Photo Gallery php Pinterest Plugins Post Formats Pricing Project Management SEBA SEO Seth Godin Shortcodes Social Networking Surveys Taxonomies Twitter Video Web design Web forms WordPress

Footer

Background

Web Sites | WordPress Support | Web Applications.

Formally trained in liberal arts and education (I have a B.A. in Government from Harvard and studied Secondary Education at Rutgers Graduate School), I have honed my skills in the communication arts and sciences as a teacher, trainer, instructional designer, writer, photographer, calligrapher, helpdesk manager, database programmer, and multimedia developer.

(I've also been a group counselor, waiter, bartender, bicycle messenger boy, computer salesman, carpenter's helper, financial analyst, and school board president.)

Tech

Systems since 1983.
Web sites since 1994.
PHP since 2001.
WordPress since 2007.

Contact

Book Meeting
770-772-5134
Email Jeff
Send Money
All Ways

Copyright 2026, nSiteful Web Builders, Inc.

Cookies Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}
https://iframe.mediadelivery.net/embed/392008/42d18bc1-2adc-4741-b733-053d08d09c32
https://vz-000c5976-3ab.b-cdn.net/42d18bc1-2adc-4741-b733-053d08d09c32/play_720p.mp4

Receive occasional emails from Jeff