WordPress.org

Ready to get started?Download WordPress

Forums

Patch for Sociable to incorporate URL shortening (1 post)

  1. Lopo Lencastre de Almeida
    Member
    Posted 4 years ago #

    Hi there,

    I added this small code to Sociable sociable_html function so it can use post meta 'short_url' if it is available:

    +	$permalink = urlencode(trim(get_post_meta($post->ID, 'short_url', 'true')));
    +	if( empty($permalink) ) $permalink = urlencode(get_permalink($post->ID));
    -	$permalink = urlencode(get_permalink($post->ID));

    Can someone from the team incorporate it the next release? Thanks a lot in advance :)

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.