Change number of widget columns in dashboard?
Under “Screen Options”, you can change the number of columns. Does that fix your problem?
Under “Screen Options”, you can change the number of columns. Does that fix your problem?
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
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).
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
<?php print (int) $instance[‘num_post’]; ?> or possibly: <?php print absint( $instance[‘num_post’] ); ?> Use the second one to avoid negative values.
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
If you don’t need to change any of the settings for the widget, you may be able to use the Duplicate Widget widget.
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; }
Found it. There was an extra closing slash on the opening select field.
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