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 🙂
- The topic ‘Patch for Sociable to incorporate URL shortening’ is closed to new replies.