Include custom post types in categories widget

I have an ‘actor’ cpt and it seems to automatically get added to the query: SELECT object_id, term_taxonomy_id FROM wp_term_relationships INNER JOIN wp_posts ON object_id = ID WHERE term_taxonomy_id IN (38,40,30,11,32,34,29,39,35,9,31,19,33,37,42,41,27,25,36,1,26) AND post_type IN (‘post’, ‘actor’) AND post_status=”publish” Call from: require, require_once, include, get_sidebar, get_template_part, locate_template, load_template, require, dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, WP_Widget_Categories->widget, wp_list_categories, get_categories, get_terms, … Read more

Using the media uploader in a custom plugin

The output code of widget’s form method is added to page once for every instance of the widget (included the “dummy” instance contained in the “Available widgets” panel), so in your case the javascript code that defines the window.send_to_editor function may appear more than once, and the last instance overwrites the previous ones. There are … Read more

Manual display of widget

I like the answer you found, but I thought I’d tack on another. You could create another sidebar area that’s only displayed on the front page, and then use the “Duplicate Widget” plugin to maintain two instances of a single plugin. It has slightly higher overhead, but becomes much easier to maintain for someone who … Read more