Vimeo Feed gived dead link with RSS widget?

The link in the title comes from the RSS feed: it contains a <link> element describing the URL of the entire channel. I think Vimeo (recently?) changed their URL structure so http://vimeo.com/user3235740/videos/uploaded no longer points to the recently uploaded videos, but http://vimeo.com/user3235740/videos/sort:newest does. It looks like Vimeo should update their feeds to include the correct … Read more

Add a custom function to widget code

Where did you call your item_width_cols_to_class “function”? You are using the function as a method inside the My_Widget class. Therefore, you have to call it with a reference to its non-existent object e.g. $this->item_width_cols_to_class() or self::item_width_cols_to_class() (static).

What happened to my Inactive Widgets?

Inactive widgets are just normal widgets from the “Available widgets” list, which have been put in the “Inactive” section in order to keep the data they contained. What probably happened is that you dropped one of them over the “Available widgets” space and it dissapeared. But don’t worry that doesn’t mean that the widget is … Read more

WordPress widget value not save?

I also got this problem before. I try to use the (bool) but the problem still occured. (bool) $instance[‘post_date’] will always return true unless $instance[‘post_date’] is an empty array, NULL or empty string you can check this from http://php.net/manual/en/language.types.boolean.php <?php var_dump((bool) “”); // bool(false) var_dump((bool) 1); // bool(true) var_dump((bool) -2); // bool(true) var_dump((bool) “foo”); // … Read more

changing the style of sidebar

if you are using (a child of) twenty ten, then the theme will use body_class() and have a unique css class for each page; use that to style the color of the sidebar widgets; example: .page-id-23 #primary.widget-area { color: #123edf; }

wp_footer hook running twice

That code doesn’t look like it conforms to the current Widgets API. Perhaps your problem is related? First potential issue: your class test should be plugin-slug-test, in order to avoid naming conflicts. Second potential issue: the only functions inside of your WP_Widget extending class should be: function plugin-slug-test() {} function widget( $args, $instance ) {} … Read more