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

---

# [Plugin: Shorten2Ping]

 *  [microtag](https://wordpress.org/support/users/microtag/)
 * (@microtag)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-shorten2ping/)
 * Hi,
    I would add category for the ping but do not works… Could you help me?
 *     ```
       $cats = get_the_category($post_id);
       $my_cats_list = '';
       if ($cats) {
       foreach ((get_the_category()) as $category) {
       $my_cats_list .= '#'.$category->cat_name.' ';
       } }
       ```
   
 * `$message = str_replace('[cats]', $my_cats_list, $message);`
 * In status message option I’ve add: “[title]” – [cats] – [link].

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

 * 0 replies
 * 1 participant
 * Last reply from: [microtag](https://wordpress.org/support/users/microtag/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-shorten2ping/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
