Hey, thanks!
There can be many reasons why it doesn’t appear. Sorry if I may sound harsh but it’s your task to figure it out in your code. 🙂 I should see it, play with it, but I really don’t have time for that. Sorry.
Thread Starter
WP_dj
(@wp_dj)
I create themes (and provide support) so I totally understand do not worry.
By the way just had to change the action from ‘init’ to ‘widget_init’.
Thanks again for your work.
Hello,
First of all, you also need to place twitteroauth.php in the same directory where recent-tweets.php file is included.
Secondly, open recent-tweets.php and replace widget registration code with this (code is located at bottom of file)
// register widget
function register_tp_twitter_widget(){
register_widget('tp_widget_recent_tweets');
}
add_action('widgets_init', 'register_tp_twitter_widget');
You may also need to replace whole construct function with this code:
function tp_widget_recent_tweets()
{
$widget_ops = array('classname' => 'tweets', 'description' => '');
$control_ops = array('id_base' => 'tweets-widget');
$this->WP_Widget('tweets-widget', 'Twitter tweets', $widget_ops, $control_ops);
}
Thanks sakib000 for helping him out with this. 🙂
Thank sakib000 just was I was looking for. ThemePrince, great plug in. Many Thanks.