I've got a couple of books I have been following about this. I made my very own custom Wordpress theme, which works fine, however made the decision I needed to create the best sidebar a widget area, and turn my twitter feed right into a widget rather than hardcoding it in to the template. I realize you will find a lot of twitter feed plug ins available, however am carrying this out for that experience.

Wordpress plugin file:

class sp_twitterWidget extends WP_Widget 
{
    function sp_twitterWidget()
    {
        parent::WP_Widget(false, $name = 'Custom Twitter Feed');
        return;
    }

    function widget($args, $instance)
    {
        extract($args);

        echo $before_widget;
            echo $before_title;
                echo $instance['title'];
            echo $after_title;

                $api_url = 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=';
                $twitter_data = file_get_contents($api_url);
                $twitter_data = json_decode($twitter_data);

                for ($i=1;$i<=3;$i++):
                    echo '<p class="tweet">';
                    echo $twitter_data[$i]->text;
                    echo '<br /><span>';
                    echo date("F j", strtotime($twitter_data[$i]->created_at));
                    echo '</span></p>';
                endfor;

        echo $after_widget;

    }

    function update($new_instance, $old_instance)
    {
        return $new_instance;
    }

    function form($instance)
    {
        $theTitle = esc_attr($instance['title']);

        echo '<p>';
            echo '<label for="'.$this->get_field_id('title').'">
                  Title: <input class="widefat" id="'.$this->get_field_id('title').'" name="'.$this->get_field_name('title').'" type="text" value="'.$theTitle.'" />
                  </label>';
        echo '</p>';
    }    
}

add_action('widgets_init', create_function('', 'return register_widget("sp_twitterWidget");')); 

Signing up sidebar like a widget-area:

if (!function_exists('register_sidebar')) { register_sidebar(); }

function sp_rightSidebar()
{
    register_sidebar(array(
        'name'          => 'Right Sidebar',
        'id'            => 'rightColumn',
        'description'   => __('The widget area for the right sidebar', 'simplePortfolio'),
        'before_widget' => '<div id="%1$s" class="widget %2$s">',
        'after_widget'  => '</div>',
        'before_title'  => '<div class="rightHeading">',
        'after_title'   => '</div>'));    
}

add_action('init', 'sp_rightSidebar'); 

Sidebar theme file:

<div id="rightColumn"> 
        <?php if (!function_exists('sp_rightSidebar') || !sp_rightSidebar()): ?>
        sp_rightSidebar is waiting.
        <?php else: ?>
        <?php dynamic_sidebar('sp_rightSidebar'); ?>
        <?php endif; ?>    
</div>

Regardless of what I actually do, it always shows "sp_rightSidebar delays around the sidebar", I've examined my widget wordpress plugin along with other styles and delay pills work fine, therefore it needs to be something about my sidebar theme file/not signing up the sidebar properly I am presuming. The "Right Sidebar" widget area does display within the icons area within the admin panel, however anything added doesn't stay there.

I personally don't like to become the man who dumps his code requesting individuals to have a look, but when the thing is anything that may be wrong, I'd thank you for input.

Thanks!

sp_rightSidebar function does not return anything, so !sp_rightSidebar() will be true. I do not know very well what you are attempting to seek advice from that conditional. Possibly you need to see if the sidebar is active with [cde]?

I do not understand your reason for calling is_active_sidebar outdoors of the register_sidebar action.


Your sidebar ID should be all lowercase, so 'rightcolumn'. Begin to see the codex: http://codex.wordpress.org/Function_Reference/register_sidebar#Parameters