WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Publicize - Full URL to Twitter? (3 posts)

  1. Chris
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    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.

  3. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic