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.

  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:
    add_action('init', 'my_custom_init');
    function my_custom_init() {
        add_post_type_support( 'product', 'shortlinks' );
    }

    You’ll need to replace “product” by your Custom Post Type name.

  2. You can also add Shortlink support when registering the post type, like so:
    // Register Custom Post Type
    function custom_post_type() {
    
        $labels = array(
            'name'                =&gt; _x( 'Products', 'Post Type General Name', 'text_domain' ),
        );
        $args = array(
            'label'               =&gt; __( 'product', 'text_domain' ),
            'supports'            =&gt; array( 'title', 'editor', 'shortlinks' ),
        );
        register_post_type( 'product', $args );
    
    }
    // Hook into the 'init' action
    add_action( 'init', 'custom_post_type', 0 );

Privacy Information

This feature is deactivated by default. It 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 / Users

The 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 Visitors

None.

Activity Tracked
Site Owners / Users

We track when, and by which user, the feature is activated and deactivated.

Site Visitors

None.

Data Synced (Read More)
Site Owners / Users

We 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 Visitors

None.

  • Table Of Contents

  • Categories

  • Contact Us

    Need more help? Feel free to contact us.