Fix WordPress' Jetpack Publicize Not Using Correct URL Structure in Permalink

February 17 2015, 3:35am

Jetpack's Publicize can be a handy feature to automatically share your post to various social network's like facebook, twitter and google plus.

One of the annoying features is when it shares it on those social networks it posts a short link. You can fix that by deactivating " Shortlinks" in Jetpack settings.

Another annoying thing is even if " Shortlinks" is disabled, it will share the url in the classic permalink structure. In order to fix this, add the following to your theme's functions.php file:

function tweakjp_cust_shortlink() {
    global $post;

    if (!$post) {

    return get_permalink($post->ID);
add_filter( 'get_shortlink', 'tweakjp_cust_shortlink' );

This solution was posted by the Publicize plugin author here: