[Plugin: Shorten2Ping] Great plugin! (5 posts)

  1. buddha trance
    Posted 7 years ago #

    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!


  2. Samuel Aguilera
    Posted 7 years ago #

    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 shortener.

  3. evardsson
    Posted 7 years ago #

    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 ...?


    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);
  4. azizpoonawalla
    Posted 7 years ago #

    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:


    any assistance much appreciated.

  5. masterbassie
    Posted 7 years ago #

    what would be even better is if we could use our own shortened urls. like what the plugin 'Twitter Friendly Links' does...

Topic Closed

This topic has been closed to new replies.

About this Topic