Skip to main content
WordPress

oAuth Twitter Feed fix for Suburbs theme

By May 28, 2014December 10th, 2014No Comments

The suburbs WordPress portfolio theme comes with Twitter widget functionality, to include your latest tweets in your footer or sidebar.

Twitter widget feed - Suburbs theme fix

oAuth Twitter Feed for Developers

The suburbs theme calls in the oAuth Twitter Feed for Developers, but an update to this plugin has switched how your twitter account username is referenced, causing someone else’s tweets to be shown.

The plugin author explains the changes on the WordPress.org forum;

In today’s 2.1+ release(s), we changed the supported way of calling the plugin to username, then count, so:

getTweets($username, $count);

rather than:

getTweets($count, $username);

 

Suburbs theme fix

To get the plugin working again via the theme’s widget options you need to make changes to reflect the above.

Find the file;

/wp-content/themes/suburbs/core/includes/widgets/widget-twitter.php

 

Find line 33 and change the order to read;

$tweets = getTweets($instance[‘username’], $instance[‘limit’], $opts);

 

Upload and you should be ready to go again!

Andrew Taylor

A senior UI designer with over 25 years of web design and web development experience working for some of the largest companies in the UK. An expert in all things Magento and WordPress.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.