Here is what I want to do. What do I replace “demo_add_default_boxes” with?
So, if you’d like your custom post types to show up in archive listings for your site’s standard tags and categories you can add the following code to your functions.php file:
//* Add wordpress categories to custom post types
add_action(‘init’, ‘demo_add_default_boxes’);
function demo_add_default_boxes() {
register_taxonomy_for_object_type(‘category’, ‘demo’);
register_taxonomy_for_object_type(‘post_tag’, ‘demo’);
}
The support post ‘What is Event Espresso called in a function?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.