• Resolved Chris

    (@eminemdrdre00)


    Is it possible to have Publicize use the full URL when it posts to Twitter? Twitter will automatically shorten any links now, so the shorter “?p=600” style URL isn’t necessary.

    Plus, Twitter sees that short URL and the full URL as two different links… so it throws off the “Tweet” count on the social buttons I have on my site.

    https://www.ads-software.com/extend/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    We didn’t include this option in Publicize, but I see why this could be a problem.

    I’ve let our developers know about the issue so that we can look into it in more detail.

    I’ll get back to you when I have some news.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Is it possible to have Publicize use the full URL when it posts to Twitter? Twitter will automatically shorten any links now, so the shorter “?p=600” style URL isn’t necessary.

    As I mentioned in my previous post, Jetpack doesn’t offer the option to use the standard permalinks. You could, however, customize the output of wp_get_shortlink on your site to replace all shortlinks with standard permalinks, by adding this function to the functions.php file in your theme:

    function tweakjp_cust_shortlink() {
        global $post;
    
        if ( !$post )
            return;
    
        return get_permalink($post->ID);
    }
    add_filter( 'get_shortlink', 'tweakjp_cust_shortlink' );

    Twitter sees that short URL and the full URL as two different links… so it throws off the “Tweet” count on the social buttons I have on my site.

    Twitter fully resolves URLs so that shouldn’t be a problem, as long as your Twitter buttons use the standard permalink to load the share count (like with the Jetpack buttons).

    If, however, the shortlinks don’t redirect to the standard permalink, you will indeed experience issues with the sharing counts.

    I hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Publicize – Full URL to Twitter?’ is closed to new replies.