I don’t really have a clue why this is happening other than it’s somehow hidden by CSS or a conflict with your theme. The widgets are all registered in the same function. Because the dropdown shows in the other widgets I have no idea why it will not display in the calendar widget.
For testing add this to your theme’s functions.php file
add_filter( 'widget_form_callback', 'cptda_widget_form_callback', 10, 2 );
function cptda_widget_form_callback( $instance, $_this ) {
$calendar = $_this instanceof CPTDA_Widget_Calendar;
echo '<pre>';
var_dump( $calendar );
echo '</pre>';
// Check if plugin calendar class is actually used
if ( $calendar ) {
// It's used
$plugin = cptda_date_archives();
// Display custom post types with date archives added.
echo '<pre>';
print_r( $plugin->post_type->get_post_types( 'names' ) );
echo '</pre>';
} else {
// Not used
echo 'Class used is ' . get_class( $_this );
}
return $instance;
}
Open the calendar widget and copy the information at the top of the widget and post it here. After that remove the code from your theme’s functions.php file