gyrus/Simple-Events — Issue #1: Plugin not working at all (not recognising post type?)
Author: lowe22
Created: 2012-03-07 13:03:39+00:00
State: open

Hi,

This plugin was not working for me at all, despite triple checking all name-spacing issues and checking my post type was registered correctly as 'event'.

After some debugging it seemed that when the plugin was called my post types had not been registered as post_type_exists() function was returning false. It seems this is because my register_post_type function was being called after the plugin init action.

Adding a priority of 10000 or something to the plug init action should ensure that all post-types and other user-defined 'init' actions are executed before the plugin.

Olly