• Resolved jbenni

    (@jbenni)


    Hi. Back before v2.0, I tried adding sidebar widgets. I wrote a couple of simple ones. (I lifted my widget template code from a published sample, and I think I updated all the necessary fields — but I may have missed something.) I may have missed some steps during upgrades along the way because they still work on the sidebar, but have funky behavior under the management panel under v2.6.

    My widgets show up in the Plugins Management panel (is this to be expected?). Strangely, they appear to offer a newer version available (“Download version 1.2.1.20070210b here or upgrade automatically.”) But I haven’t released any newer version. If I try the automatic upgrade, it appears to work in the log, but it actually deletes my widgets and doesn’t replace them.

    My widgets are located here:
    …/wp-contents/plugins/widgets/MyWidget.php

    That puts them next to the widgets.php file from WP. At some point, I also picked up sub-directories for a couple of themes (in the widgets directory). Should the widget PHP files reside in the appropriate theme subfolders, or in the widget folder, or is there a better (newer) way to handle sidebar widget functionality?

    Thanks,
    Jbenni

Viewing 2 replies - 1 through 2 (of 2 total)
  • 1. First of all, you don’t need the widgets plugin anymore because it is built-in.
    2. Widgets are just fancy plugins, so they should reside in the wp-content/plugins folder

    Thread Starter jbenni

    (@jbenni)

    Thanks mucho.

    I moved the widgets to the plugins folder and deleted the widgets folder. All seems to be working now.

    Thanks again, case closed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘widgets from an older version, auto upgrade issues’ is closed to new replies.