WordPress.org

Ready to get started?Download WordPress

Forums

sidebar widget problem (1 post)

  1. jwwceo
    Member
    Posted 6 years ago #

    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';
    }

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

    function myHelloWorld_init()
    {
    register_sidebar_widget(__('LiquidCotton'), 'widget_myHelloWorld');
    }
    add_action("plugins_loaded", "myHelloWorld_init");
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic