The other possibility is to add a widget without changing the existing sidebar. IS that possible?
-gl
Can you maybe do this? Have one include with your widget(s) and another one that does not. Call the appropriate sidebar to the page as needed? Something like this:
sidebar.php (no widget)
sidebar2.php or sidebarW.php (so you know it’s got a widget)
Deb
Well, I should explain better…
I want all of the pages to have the widget but, each page will have different sidebars. Can I load a widget via a sidebar template instead of the admin interface?
-gl
Roy
(@gangleri)
It’s a little over my head, but just look around the forum for “different sidebar” topics, such as these two:
http://ww.wp.xz.cn/support/topic/116809?replies=6
http://ww.wp.xz.cn/support/topic/119978?replies=4
Maybe there is some inspiration there.
The way I have it setup now is through page templates where I switch out the sidebar for each template. Again, the desire is to use the same widget for all the pages. However, when you add a widget via the wp admin it completely replaces the sidebar with the widget(s) you add. I just want to have the sidebar AND the widgets.
Does this make sense? Thanks for the help thus far.
-gl
Roy
(@gangleri)
Does this make sense?
Not really! If you have a non widget sidebar (sidebar.php) that you code yourself, it indeed gets replaced by a “widgetized” sidebar. If you already have a sidebar that uses widgets, you should just be able to add a widget.
How do you create a sidebar that uses widgets other than the wp admin? Is there any way to include them programmatically?
-gl