I’m writing some code that makes extensive use of custom post types- and I’m looking for a means of programatically adding a category to a defined custom post type, and then accessing its category ID.
I had a poke around but I can’t seem to find a robust means of achieving this – wp_create_category would be the obvious choice but of course this doesn’t support custom post types.