Articles of widgets

Shortcode displays always first. Once again

OK, I’ve had a problem with echoes in my last shortcodem, but everything works fine now. But I have another one: function myWidget_shortcode( $atts ) { extract( shortcode_atts( array( ‘title’ => ‘My Widget’, ‘value’ => ‘5’, ), $atts ) ); return the_widget(myWidget,’title=’.$title.’&value=’.$value); } add_shortcode(‘myWidget’, ‘myWidget_shortcode’); Can you tell me wy this shortcode always displays first […]

How/where is the global variable $wp_registered_widgets filled?

I have a problem of widgets not showing up, trying to investigate why $wp_registered_widgets is empty. Can somebody tell me where it gets filled from the database? How can I find out why the default widgets are not set.

Including PHP files doesn't work outside of Localhost

I have a bunch of widgets that I load from php files, like so: I added a PHP CODE widget and inside wrote: <?php include ‘/wp-content/themes/myTheme/parts/block1.php’; ?> This worked well on my localhost, but for some reason it stopped working when I uploaded that website online (and switched the home and site_url of course). Any […]

How can I use AJAX to save/update a widget form?

My custom widget’s form will have two pull-down menus: the content of the second menu is dependent on the user’s selection in the first menu (think of the way Country and State/Province works). I think the easiest implementation (though perhaps not the most user-friendly) would simply be to have the form automatically submit itself when […]

Subscribe2 widget with choosing categories?

Is it possible to specify the category people can choose to subscribe to in the Subscribe2 (WordPress Plugin) widget?

WordPress author details plugin/widget

Does anyone know any wordpress plugin to display the author’s profile & image similar to the image attached

List a current posts' taxonomy terms in a widget in WordPress

I would very much like to know if there is a widget that exists that would let me show the current page’s associated taxonomy terms (preferably hierarchically) in a widget. For example, if the current post has a Taxonomy term “Tom Hanks” in the Taxonomy of “Actor”, the widget would list “Actor” then “Tom Hanks”. […]

adding multiple sidebars on pages

I am using twentyten theme and I want there to be two sidebars on my page – one on the left and the second on the right. Can any one tell me how to do that?

Widget “Save” resetting jQuery hidden fields

I have a widget plugin that I’ve created, that lists about 10 fieldsets. jQuery runs at the beginning and hides and fieldsets that have no values. There are also buttons that allow to “Add” and “Remove” fieldsets. Everything works great except for when its time to “Save”. After clicking Save all of the jQuery stops […]

Widget code is not working on WordPress.com Hosted Blogs

I have developed a JavaScript widget which works fine when I embed it in any of my html pages. The code is something like this <script type=”text/javascript” charset=”utf-8″> var asset_host = ‘http://domain.com’; var url = unescape(“%3Cscript src='” + asset_host + “/javascripts/widget.js’ type=’text/javascript’%3E%3C/script%3E”); document.write(url); </script> <script type=”text/javascript” charset=”utf-8″> var widget_options = {}; widget_options.iframe_base_url = asset_host + […]