Hi Sean and Steve,
I was having the same issue with the plugin. I installed it, check for any namespace conflicts and after discovering no issues started debugging.
I noticed both the plugin and your register_post_type functions are called on 'init' action.
You need to make sure that WordPress calls your register_post_type function before the plugin 'init' action so that the post type exists before the plugin is activated.
Do this simply by adding a priority of '1' to your register_post_type function, thus:
function create_my_post_types() {
register_post_type( 'event',
array(
'labels' => array(
... labels here ...
),
'public' => true,
'supports' => array( 'title', 'editor', 'thumbnail' ),
... more options ...
)
);
}
add_action( 'init', 'create_my_post_types', 1, false );
It works for moe now, so I hope that helps.
Might be worth putting that as a note in your plugin readme, Steve? Or just add a lower priority to the plugin init action.
Olly