Do you want to create a shortlink of your WordPress blog posts or pages? WordPress shortlinks are useful for sharing in your emails, facebook messages, or even text messages. It was a default feature until WordPress version 4.4. Recently, one of our readers asked how to bring back the get shortlink feature in WordPress. In this tutorial, we will share how to restore the get shortlink button in WordPress.
What is the Get Shortlink Button in WordPress?
Get Shortlink button is a WordPress feature that allows you to easily get a short link of your WordPress blog post or page. It used to be located right next to the permalink area in the post edit screen.
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.
We find this feature to be quite useful for easily getting shortlinks for our blog posts that look like this:
http://wpbeg.in/2csN1pj
If you want to bring back the get shortlink feature on your WordPress site, then you’re in the right place.
Let’s take a look at how to bring back the get shortlink button back in WordPress.
Method 1: Using WP Bitly plugin to Add Get Shortlink Button
This method is easier and recommended for most users. This method also allows you to create custom branded short URLs for your website.
First thing you need to do is install and activate the WP Bitly plugin. For more details, see our step by step guide on how to install a plugin in WordPress.
Upon activation, this plugin will automatically add the Get Shortlink button on your post edit screen.
Once you click on this button, it will show you the shortlink for your WordPress posts and pages. This shortlink can be shared in your emails and messages, so your audience can reach directly to the page.
You can also use the WP Bitly plugin to create custom branded shortlinks for your blog posts like we do on WPBeginner. See our step by step guide on how to create your own customized short url in WordPress.
Method 2: Manually Adding Get Shortlink Button
This method requires you to add code to your WordPress files. If you haven’t done this before, then please take a look at our guide on how to copy and paste code in WordPress.
You will need to add the following code to your WordPress theme’s functions.php file or a site-specific plugin:
add_filter( 'get_shortlink', function( $shortlink ) {return $shortlink;} );
This code will add the shortlink filter to display the Get Shortlink button in your WordPress pages and posts.
You can click on this button to get the shortlink for your post or page.
We hope this article helped you bring back the Get Shortlink button in WordPress. You may also want to check out our list of the must have WordPress plugins for business websites.
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.
The post How to Restore the Get Shortlink Button in WordPress appeared first on WPBeginner.
source http://www.wpbeginner.com/wp-tutorials/how-to-restore-the-get-shortlink-button-in-wordpress/
No comments:
Post a Comment