Title: [Plugin: Shorten2Ping] Great plugin!
Last modified: August 19, 2016

---

# [Plugin: Shorten2Ping] Great plugin!

 *  [buddha-trance](https://wordpress.org/support/users/buddha-trance/)
 * (@buddha-trance)
 * [17 years ago](https://wordpress.org/support/topic/plugin-shorten2ping-great-plugin/)
 * Very handy plugin. It does what it says, and the developer is very helpful. In
   case this can help anyone, if you get error warnings after publishing your post,
   try resetting your bit.ly account API key and update it in your plugin settings.
   It works perfectly for me now!
 * [http://wordpress.org/extend/plugins/shorten2ping/](http://wordpress.org/extend/plugins/shorten2ping/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Samuel Aguilera](https://wordpress.org/support/users/samuelaguilera/)
 * (@samuelaguilera)
 * [17 years ago](https://wordpress.org/support/topic/plugin-shorten2ping-great-plugin/#post-1090365)
 * Thank you very much for your kind words 😉
 * By the way, I just released a new version adding support for direct Twitter notification
   and [http://tr.im](http://tr.im) shortener.
 *  [evardsson](https://wordpress.org/support/users/evardsson/)
 * (@evardsson)
 * [17 years ago](https://wordpress.org/support/topic/plugin-shorten2ping-great-plugin/#post-1090394)
 * Where is it meant to save the settings (bit.ly account API key, ping.fm key, 
   etc)?
 * I am unable to get any changes I make to stick. Should it be saving in the wp_options
   table, or should it be writing it into the shorten2ping.php file directly, or…?
 * Thanks,
 * PS – Once I get this working I am going to add hashtags for the ping (they don’t
   mean much in Facebook, MySpace, etc, but can be important in Twitter)
 * Adding these is simple –
 *     ```
       $post_url = get_permalink($post_id);
           $post_title = get_the_title($post_id);
           // --- add some tag bits here ------ //
           $tags = wp_get_post_tags($post_id);
           $my_tag_list = '';
           if ($tags) {
           foreach ($tags as $j=>$tag) {
               $my_tag_list .= '#'.$tag->slug.' ';
           }
           // --- back to regular processing ----- //
           // --- cut for brevity ----- //
                   //get message from settings and process title and link
                   $message = $s2p_options['message'];
                   $message = str_replace('[title]', $post_title, $message);
                   $message = str_replace('[link]', $short_url, $message);
                   // --- add the tags ----- //
                   // --- ToDo: determine length and truncate Title(?) or Tags in order to fit in Twitter post //
                   $message = str_replace('[tags]', $my_tag_list, $message);
       ```
   
 *  [azizpoonawalla](https://wordpress.org/support/users/azizpoonawalla/)
 * (@azizpoonawalla)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-shorten2ping-great-plugin/#post-1090539)
 * i am trying to do something similar to evardsson’s code above, in a dedicated
   plugin for adding tags to post titles in the RSS feed as hashtags, please see
   thread:
 * [http://wordpress.org/support/topic/302741?replies=1](http://wordpress.org/support/topic/302741?replies=1)
 * any assistance much appreciated.
 *  [masterbassie](https://wordpress.org/support/users/masterbassie/)
 * (@masterbassie)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-shorten2ping-great-plugin/#post-1090541)
 * what would be even better is if we could use our own shortened urls. like what
   the plugin ‘Twitter Friendly Links’ does…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Shorten2Ping] Great plugin!’ is closed to new replies.

 * 4 replies
 * 5 participants
 * Last reply from: [masterbassie](https://wordpress.org/support/users/masterbassie/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-shorten2ping-great-plugin/#post-1090541)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
