Can I display the widget admin in the page admin?

If I understand well your want to show the widgets adding and removing interface inside a meta box. An easy, -a little dirty- way is using an iframe: function metaboxed_widgets_admin() { if ( ! current_user_can( ‘edit_theme_options’ ) ) return; add_meta_box(‘metaboxed_widgets’, __(‘Widgets’), ‘metaboxed_widgets_admin_cb’, ‘page’); } add_action( ‘add_meta_boxes’, ‘metaboxed_widgets_admin’ ); function metaboxed_widgets_admin_cb() { if ( ! current_user_can( … Read more

How to add a filter to all widget output

There is another thread on here that discusses a workaround. Well… the familiar php workaround when a function does not provide a “get to variable” output actually… use ob_start: http://php.net/manual/en/function.ob-start.php to just capture the output and manipulate it before sending it on its way. Leads on stackoverflow: https://stackoverflow.com/search?q=%2Bwordpress+sidebar+%2Bob-start+

What is this instance variable doing in the Widgets class

$instance holds the data stored for this widget instance as an array. You could use the same widget multiple times, and each would get different data. get_field_name() and get_field_id() returns name/id attributes for that widget. They are unique for each widget, but do not depend on the data. That’s why they do not have to … Read more

Using add_filter() in Widgets

<?php /** * Display the actual Widget * * @param Array $args * @param Array $instance */ public function widget($args, $instance){ … $wcss = apply_filters( ‘my-filter-name’, $wcss ); … } ?> To create your own filter hook just use the function “apply_filters” then as you mentioned add a function in your constructor i.e. function __constructor() … Read more

Widget to display custom taxonomy tag cloud

Don’t know of any but you can easily create your own: <?php add_action(“widgets_init”, array(‘Widget_Custom_tax_tag_cloud’, ‘register’)); class Widget_Custom_tax_tag_cloud { function control(){ echo ‘No control panel’; } function widget($args){ echo $args[‘before_widget’]; echo $args[‘before_title’] . ‘Your widget title’ . $args[‘after_title’]; $cloud_args = array(‘taxonomy’ => ‘Your taxonomy here’); wp_tag_cloud( $cloud_args ); echo $args[‘after_widget’]; } function register(){ register_sidebar_widget(‘Widget name’, array(‘Widget_Custom_tax_tag_cloud’, … Read more

Moving WordPress.com theme and widget settings to self-hosted site?

First off, check if the theme is available in wordpress.org themes: http://wordpress.org/extend/themes/ If it’s not, find the name of the theme developer and contact them. Many developers of wordpress.com themes are happy for people to use their themes on self-hosted WordPress blogs. The developer’s name and contact details can be found by looking at style.css. … Read more