Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Create a Short Link in WordPress (The Easy Way)

Sharing a new blog post is exciting until you paste a long, clunky URL into your social media update. It can look messy and eats up precious character limits, especially on platforms like X (formerly Twitter).

We’ve been there, and after managing dozens of websites, we’ve found the best ways to create clean, short links right from WordPress. This simple step makes your content much more shareable and professional.

In this guide, we’ll show you the exact methods we use. You’ll learn how to easily create short links that are perfect for social media, emails, and tracking your marketing campaigns.

How to Create a Short Link in WordPress

Why Create a Short Link in WordPress?

Sharing your web content on social media can build user engagement and bring new users to your website. But pasting in long links or URLs isn’t always the best way.

That’s because some social media platforms will limit the number of characters you can use. A shorter URL gives you extra space for more useful content, which can lead to more engagement and traffic to your WordPress website.

That’s why URL shortener services like Bitly and TinyURL were originally created. They take a long link and make it shorter so that it doesn’t take up as much space.

For example, if you’re using SEO-friendly URL structures, then you might have long URLs that look something like this:

https://www.wpbeginner.com/beginners-guide/self-hosted-wordpress-org-vs-free-wordpress-com-infograph/

Our short link for that post saves a lot of space:

http://wpbeg.in/b6xh7G

Note: We use a custom domain, wpbeg.in, for our short links, which is a bit more technical to set up and would require you to purchase another domain. We have a separate tutorial on how to create your own customized short URL.

In the past, WordPress made it easy to get a short link to your blog post or page. There was a Get Shortlink button located right next to the permalink area of the classic editor.

Get Shortlink Button in the Classic Editor

However, if you recently started your blog, then you will not see this feature on your WordPress site because it was removed after WordPress version 4.4. WordPress still creates the links, but the button has been removed.

In this guide, we’ll cover two great ways to do this. First, we’ll use a plugin to create branded, memorable short links (like yoursite.com/offer) that are perfect for marketing. Then, we’ll show you how to find the simple, built-in short link that WordPress automatically creates for every post.

Still, there are a few ways you can get short links for your WordPress posts and pages.

We’ll cover the best link shortener plugin, plus a couple of ways you can restore the ‘Get Shortlink’ button in the classic editor. Simply click the links below to jump straight to each option:

We’ll start with a method that works for everyone. The Pretty Links plugin is one of the best URL shorteners for WordPress. It doesn’t rely on the classic editor and will create its own short link out of any URL.

Pretty Links homepage

It works with all links, including pages outside of your blog or website. So, besides letting you share your own content, it’s also the perfect tool for shortening affiliate links.

To get started, you’ll need to install and activate the free Pretty Links plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Note: There is a Pro version of Pretty Links with more powerful features like keyword auto-linking, link categories, and tags, but for this tutorial, we will be using the free version.

Once you activate the plugin, a Pretty Links section is added to your WordPress dashboard. To create your first short link, you need to go to the Pretty Links » Add Link page.

Next, paste the original URL you want to shorten into the ‘Target URL’ field. A short Pretty Link is automatically created for you, but you can customize the slug to make it more readable and memorable. For example, you can change yoursite.com/a9b8c7 to something like yoursite.com/ebook, which is great for marketing campaigns!

How to set up an affiliate redirect using Pretty Links

Once you’ve created a few short links, you may not remember what they are all for.

To keep your links organized, we highly recommend filling in the ‘Title’ and ‘Notes’ fields. This will make it much easier to find and manage your links later on.

Fill in the Title and Notes

Once you have filled in the Pretty Links form, click the ‘Update’ button to activate the short link.

Click the Update Button to Activate the Short Link

You will now see a list of all of your Pretty Links. To copy one to the clipboard, just click on the ‘Copy’ icon at the right of the screen.

After that, you can paste it into any of your social media channels. Pretty Links will even keep track of how many clicks each link gets.

Copy the Short Link Using the Copy Icon

While Pretty Links has built-in analytics, you can further improve your analytics by connecting it with Google Analytics using the MonsterInsights plugin.

For more details, see our step by step guide on how to properly set up Google Analytics in WordPress.

Did you know that WordPress automatically creates a simple short link for every post and page on your site? This method doesn’t require any plugins or code, and it’s a great way to get a short URL in a pinch.

This default short link uses your post’s unique ID and looks like this:

https://www.yourwebsite.com/?p=123

Here’s how to easily find the ID for any post or page.

First, go to your WordPress dashboard and navigate to Posts » All Posts. Then, simply hover your mouse over the title of the post you need a short link for.

Look at the bottom-left corner of your browser window. You will see the post’s edit URL appear, and within that URL, you will see post= followed by a number. That number is the Post ID!

Finding the Post ID by hovering over a post in the WordPress dashboard.

For example, if the ID is 2319, then your default WordPress short link is https://www.yourwebsite.com/?p=2319.

While this link isn’t as pretty as the custom ones you can make with Pretty Links, it’s very short and works perfectly for quick sharing.

Many of our readers have questions about creating and using short links in WordPress. Below are answers to some of the most common ones we receive.

1. Will using short links hurt my WordPress SEO?

No, using short links will not hurt your SEO as long as they use proper 301 redirects. Search engines like Google understand that the short link is just a pointer to the original URL and will pass along any link equity correctly.

2. What is the best URL shortener for WordPress?

We believe Pretty Links is the best URL shortener for most WordPress users. It’s easy to use, lets you create custom branded links, and provides click-tracking features right inside your WordPress dashboard.

3. Can I track who clicks on my short links?

Yes, you can. A major benefit of using a plugin like Pretty Links is its built-in analytics. It tracks every click on your short URLs, giving you valuable data on how your links are performing across different channels.

4. Do I need a custom domain for my short links?

No, you don’t need a custom domain. By default, plugins like Pretty Links will create short URLs using your main domain (such as yoursite.com/offer). However, using a custom short domain (like our wpbeg.in) can make your links even shorter and reinforces your brand.

Additional Resources

Now that you know how to create short links, you can explore these other guides to get the most out of your site’s marketing and link-building efforts.

We hope this article helped you learn how to create a short link in WordPress. You might also like to learn how to add nofollow links in WordPress or see our comparison of the best internal linking plugins for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

9 CommentsLeave a Reply

  1. Well after I read this, I’m trying out the Pretty Links method.
    It seems like a time-saver compared to having to visit an external site to shorten links before sharing them.
    And it can also be used for affiliate links, so that’s a plus for me.

  2. Until now, I used external url shorteners as external services, it’s great that an internal tool can also be used for a website where I need it.

  3. How to create a new field at the bottom of the article?
    Write a short link to the article
    And the short link next to the field

    • We do not have a specific solution for that at the moment but we will certainly share if we find something we would recommend :)

      Admin

  4. Hello,

    Thank you for the topic. I was using the manual method. But now it is not working with WP 5 Gutenberg editor.

    Is there a new way for it?

    Thank you

  5. I would love to see a “Get Shortlink” capability for the Admin Bar when logged in, so one does not have to go to the post/page editor to get the shortlink. Any gurus have any suggestions?

  6. Is it possible using a shortener to share a link blocked by Fb. And it works automatically for ‘share button’.

    My domain was blocked Fb when it encountered an interruption, it was fixed but still blocked, and the ‘share button for Fb’ on my page is no longer useful.

    Thank’s WpBeginner.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.