Support Home > Utilities > WP.me Shortlinks

WP.me Shortlinks

Shortlinks are a quick way to get short and simple links to your posts and pages. They use the wp.me domain so you can have more space to write on social media sites.

To activate this feature, go to Jetpack → Settings → Traffic and toggle the switch labelled Create short and simple links for all posts and pages in the Shortlinks section.

Finding the shortlink for a post or page

To find the shortlink for a post/page, in the edit screen, click the green Jetpack icon at top right to open the Jetpack sidebar:

You’ll then see the shortlink url under the Shortlink section, where you can copy it to your clipboard:

Note: If you’re using the Classic Editor, you will instead see a ‘Get Shortlink’ button next to the permalink, just below the post title. If you click that button the shortlink will be displayed in a pop-up:

How it works

The functionality for these shortlinks is similar to other URL shortening services. WP.me is different, though, in a few ways:

  • Every post on WordPress.com and Jetpack-powered blogs has a WP.me URL.
  • These are all exposed in the <head> using rel=shortlink.
  • It doesn’t work for any URL in the world, just WordPress-hosted ones.
  • The links are permanent, they will work as long as WordPress.com is around.
  • The WP.me domain is spam-free, because we are constantly monitoring and removing spam from WordPress.com.

Enable shortlinks for Custom Post Types

By default, WP.me shortlinks are generated for each one of your posts, pages, and attachment pages.

Option 1.

You can add Shortlink support to an existing post type thanks to the add_post_type_support() function. To do so, add the following code to a functionality plugin:

You’ll need to replace custom_post_type by your Custom Post Type slug.

add_action('init', 'my_custom_init'); 
function my_custom_init() {     
      add_post_type_support( 'custom_post_type', 'shortlinks' ); 
}

Option 2.

You can also add Shortlink support when registering the post type, like so:

// Register Custom Post Type 

function jetpackme_custom_post_type() { 
	$args = array( 
		'label'    => __( 'Custom Post Type', 'text_domain' ), 
		'supports' => array( 'title', 'editor', 'shortlinks' ),
		'public'   => true
	); 
	
	register_post_type( 'custom_post_type', $args ); 
} 

// Hook into the 'init' action 

add_action( 'init', 'jetpackme_custom_post_type', 0 );

Please be aware that these snippets are provided as a courtesy and our support team is unable to offer assistance customizing them further.

Privacy Information

Shortlinks are deactivated by default. They can be activated/deactivated at any time by toggling the Create short and simple links for all posts and pages setting in the Shortlinks section at Jetpack → Settings → Traffic.

Data Used
Site Owners / UsersThe WordPress.com-based ID of the site and the specific post ID are used to generate the shorlink.Additionally, for activity tracking (detailed below): IP address, WordPress.com user ID, WordPress.com username, WordPress.com-connected site ID and URL, Jetpack version, user agent, visiting URL, referring URL, timestamp of event, browser language, country code.Site VisitorsNone.
Activity Tracked
Site Owners / UsersWe track when, and by which user, the feature is activated and deactivated.Site VisitorsNone.
Data Synced (Read More)
Site Owners / UsersWe sync a single option that identifies whether or not the feature is activated. The specific, individual shortlinks themeselves are also synced with post data.Site VisitorsNone.
  • Table Of Contents

  • Contact Us

    Need more help? Feel free to contact us.