• Hello,

    I am trying to make a widget. I made the plugin, activated it and tested it on my blog. It works fine on my blog, which has one sidebar. I tried to have another blog use it, and he tried to use it on his right sidebar, he has two. It worked as well, but it killed all the content on his left sidebar.

    I’m including the code below:

    any ideas??

    `<?php
    /*
    Plugin Name: Liquid Cotton Widget
    Plugin URI: http://www.blog.liquidcotton.com
    Description: Liquid Cotton Directory Widget
    Author: James
    Version: 1.0
    Author URI: http://liquidcotton.com/
    */

    function sampleHelloWorld()
    {
    include ‘http://www.liquidcotton.com/widget_fatseagull.php&#8217;;
    }

    function widget_myHelloWorld() {
    ?>
    <?php sampleHelloWorld(); ?>
    <?php
    }

    function myHelloWorld_init()
    {
    register_sidebar_widget(__(‘LiquidCotton’), ‘widget_myHelloWorld’);
    }
    add_action(“plugins_loaded”, “myHelloWorld_init”);
    ?>

  • The topic ‘sidebar widget problem’ is closed to new replies.