rebroken
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Shortcode for Google Maps] Marker not showing+1
Forum: Plugins
In reply to: [TW Recent Posts Widget] Excerpts missing after update?@ctabor Sure, grab my email address from https://github.com/afoster.
Forum: Plugins
In reply to: [TW Recent Posts Widget] Excerpts missing after update?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
2. Edit the top of this plugin’s php file (
tw-recent-posts.php) to include two extra lines belowVersion: 1.0.4but above the end of the comment section (*/):GitHub Plugin URI: https://github.com/sol1/tw-recent-posts-widget GitHub Branch: sol1With 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/.
Forum: Plugins
In reply to: [TW Recent Posts Widget] Excerpts missing after update?@danicalc This just fixes the category drop-down box.
Forum: Plugins
In reply to: [TW Recent Posts Widget] Excerpts missing after update?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
In reply to: [Twitter Widget Pro] Whoa there! The request token for this page is invalid.Thanks @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