[wp-hackers] Custom taxonomies and admin menus
mikeschinkel at newclarity.net
Sat Jul 31 22:44:53 UTC 2010
Can you post your register_taxonomy() code?
On Jul 31, 2010, at 6:40 PM, Joshua Sibelman wrote:
> I'm registering the taxonomies on init, like so:
> add_action('admin_init', array($this, 'createListingTaxonomies'), 0);
> On Jul 31, 2010, at 3:22 PM, Mike Schinkel wrote:
>> In the plugin are you doing it in the global area of the .PHP file on in an init hook?
>> On Jul 31, 2010, at 5:52 PM, Joshua Sibelman wrote:
>>> I hope this isn't an obvious question, but I wasn't able to find anything on this in the Codex.
>>> I created a plugin for a client that registers a new post type with two attendant hierarchical taxonomies. When the taxonomies are registered via the plugin, I do not see line items in the admin menu to access them for editing. If I move the taxonomy registration out of the plugin and into the theme's functions.php file, then the menu items appear.
>>> Can anyone explain this behavior? Is there something specific I need to do when registering taxonomies via plugin vs. the functions.php file to get the menus to appear?
>>> Thanks for any help you can give me.
More information about the wp-hackers