Title: rebroken's Replies | WordPress.org

---

# rebroken

  [  ](https://wordpress.org/support/users/rebroken/)

 *   [Profile](https://wordpress.org/support/users/rebroken/)
 *   [Topics Started](https://wordpress.org/support/users/rebroken/topics/)
 *   [Replies Created](https://wordpress.org/support/users/rebroken/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/rebroken/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/rebroken/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/rebroken/engagements/)
 *   [Favorites](https://wordpress.org/support/users/rebroken/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Shortcode for Google Maps] Marker not showing](https://wordpress.org/support/topic/marker-not-showing/)
 *  [rebroken](https://wordpress.org/support/users/rebroken/)
 * (@rebroken)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/marker-not-showing/#post-8723130)
 * +1
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TW Recent Posts Widget] Excerpts missing after update?](https://wordpress.org/support/topic/excerpts-missing-after-update/)
 *  [rebroken](https://wordpress.org/support/users/rebroken/)
 * (@rebroken)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/excerpts-missing-after-update/page/2/#post-5968228)
 * [@ctabor](https://wordpress.org/support/users/ctabor/) Sure, grab my email address
   from [https://github.com/afoster](https://github.com/afoster).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TW Recent Posts Widget] Excerpts missing after update?](https://wordpress.org/support/topic/excerpts-missing-after-update/)
 *  [rebroken](https://wordpress.org/support/users/rebroken/)
 * (@rebroken)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/excerpts-missing-after-update/#post-5968221)
 * I made two further hacks to get my excerpts back.
 * 1. Near line 77, replace:
 * `$post_excerpt = $post->post_excerpt;`
 * With
 *     ```
       setup_postdata( $post );
       $post_excerpt = get_the_excerpt();
       ```
   
 * 2. Near line 186, replace:
 *     ```
       <?php echo $this->_truncate_post($length)
                       . ($moretext != '' ? ' <a href="' . get_permalink() . '" class="read-more">' . $moretext . '</a>' : ''); ?>
       ```
   
 * With:
 *     ```
       <?php echo $this->_truncate_post($length)
                       . ($moretext != '' ? ' <a href="' . get_permalink() . '" class="read-more">' . $moretext . '</a>' : ''); ?>
                   <?php echo $this->_truncate_post($length); ?>
                   <?php echo ($moretext != '') ? ' <a href="' . get_permalink() . '" class="read-more">' . $moretext . '</a>' : ''; ?>
       ```
   
 * I have around 130 websites using this plugin so unfortunately I’ve had to fork
   it, but my changes are only in a Github repository. If you want to “upgrade” 
   to my fork, do the following:
 * 1. Install the Github Updater plugin from [https://github.com/afragen/github-updater](https://github.com/afragen/github-updater)
 * 2. Edit the top of this plugin’s php file (`tw-recent-posts.php`) to include 
   two extra lines below `Version: 1.0.4` but above the end of the comment section(`*/`):
 *     ```
       GitHub Plugin URI: https://github.com/sol1/tw-recent-posts-widget
       GitHub Branch:     sol1
       ```
   
 * With any luck you should now be able to upgrade from 1.0.4 to 1.1.5.
 * If you can’t see the upgrade available try installing [https://wordpress.org/plugins/force-plugin-updates-check/](https://wordpress.org/plugins/force-plugin-updates-check/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TW Recent Posts Widget] Excerpts missing after update?](https://wordpress.org/support/topic/excerpts-missing-after-update/)
 *  [rebroken](https://wordpress.org/support/users/rebroken/)
 * (@rebroken)
 * [11 years ago](https://wordpress.org/support/topic/excerpts-missing-after-update/#post-5968187)
 * [@danicalc](https://wordpress.org/support/users/danicalc/) This just fixes the
   category drop-down box.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TW Recent Posts Widget] Excerpts missing after update?](https://wordpress.org/support/topic/excerpts-missing-after-update/)
 *  [rebroken](https://wordpress.org/support/users/rebroken/)
 * (@rebroken)
 * [11 years ago](https://wordpress.org/support/topic/excerpts-missing-after-update/#post-5968179)
 * Hi
 * I worked around this by replacing tw-recent-posts-widget.php line 242:
 * `$cats = get_categories(array('hide_empty' => 0, 'name' => 'category', 'hierarchical'
   => true));`
 * With:
 * `$cats = get_categories(array('hide_empty' => 0, 'hierarchical' => true));`
 * Hope that helps
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Twitter Widget Pro] Whoa there! The request token for this page is invalid.](https://wordpress.org/support/topic/whoa-there-the-request-token-for-this-page-is-invalid/)
 *  [rebroken](https://wordpress.org/support/users/rebroken/)
 * (@rebroken)
 * [13 years ago](https://wordpress.org/support/topic/whoa-there-the-request-token-for-this-page-is-invalid/#post-3704224)
 * Thanks [@bigstylee](https://wordpress.org/support/users/bigstylee/)! This solved
   the error for me. I was being redirected to Twitter with an invalid (single character)
   oauth token. Perhaps Twitter’s servers respond either inconsistently or just 
   differently depending on some condition, in which case this patch handles it.
 * – Andy

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