@mattyrob
When I tried the reactivating the plugin again (after removing the same code from subscribe2.php), I got this message on my plugin admin page:
The plugin generated 2 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
I’m using the same versions as you, but continue to get the same weird white screen issues. I even get them on other pages and using other functions, like after I move an event to the trash or even after deactivating a plugin. Sometimes just refreshing will do the trick to fix the white screen, but it’s buggy for sure, on the front and backend (only when using the code via plugin).
Maybe in future iterations of Subscribe2 there could be a settings box where you could enter custom post type names directly, i.e. where it currently reads “Subscribe2 will send email notifications for the following custom post types: Ai1ec_event” If I were able to input the custom post type right there in the backend, that would be fantastic. And if it would automatically add the notification override to whatever custom post types are added, that would be even better.
I did, however, figure out how to get my custom post type categories to be available in the featured content drop down menus of the theme options page:
It used to be:
<?php wp_dropdown_categories(array(
'selected' => ot_option('hp_mid_cat'),
'name' => $settings.'[hp_mid_cat]',
'orderby' => 'Name' ,
'hierarchical' => 1,
'show_option_all' => __("All Categories",
'organicthemes'), 'hide_empty' => '0'
)); ?></p>
Now it’s:
<?php
$taxonomy = 'events_categories';
$orderby = 'name';
$show_count = 1; // 1 for yes, 0 for no
$pad_counts = 0; // 1 for yes, 0 for no
$hierarchical = 1; // 1 for yes, 0 for no
$title = '';
wp_dropdown_categories(array(
'taxonomy' => $taxonomy,
'orderby' => $orderby,
'show_count' => $show_count,
'hierarchical' => $hierarchical,
'title_li' => $title,
'selected' => ot_option('hp_side_cat'),
'name' => $settings.'[hp_side_cat]',
'orderby' => 'Name' ,
'hierarchical' => 1,
'show_option_all' => __("All Events", 'organicthemes'),
'hide_empty' => '0'
)); ?>
</p>
That worked for me.
Anyhow, thanks again for the spectacularly fast and effective help! And the awesome plugin.
-Andrew