Support

Home Forums Event Espresso Premium What is Event Espresso called in a function?

What is Event Espresso called in a function?

Posted: July 15, 2014 at 1:09 pm

Viewing 1 reply thread


Zoe Bradford The Company Theatre Inc

July 15, 2014 at 1:09 pm

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’);
}

Event Espresso 4.2.7.p
latest WordPress install


Josh

  • Support Staff

July 15, 2014 at 2:24 pm

Hi Zoe,

It sounds like this might be the code you’re looking for:

https://eventespresso.com/wiki/useful-php-code-snippets/#add-to-blog

Viewing 1 reply thread

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.

Event Espresso