Support

Home Forums Event Espresso Premium Attempting to add espresso_events as custom posts with Divi

Attempting to add espresso_events as custom posts with Divi

Posted: August 8, 2016 at 8:40 am

Viewing 1 reply thread


clrc

August 8, 2016 at 8:40 am

Hi There,

I’ve attempted to add this code to my funcitons.php file, but it doesn’t seem to be working. Advice?

function et_pb_extend_supported_post_types( $post_types ) {
$new_post_types = array( ‘espresso_events’ );

return array_merge( $post_types, $new_post_types );
}
add_filter( ‘et_builder_post_types’, ‘et_pb_extend_supported_post_types’ );


Josh

  • Support Staff

August 8, 2016 at 8:45 am

I can advise contacting Elegant Themes for any Divi support related questions. We have no knowledge about how to extend the Divi theme.

Viewing 1 reply thread

The support post ‘Attempting to add espresso_events as custom posts with Divi’ 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