Categories for custom post types on blog page

Hi, i’m fairly new to Wordpress development and Roots. I’m having problems getting categories from custom post types to display in the sidebar on the blog page (currently index.php). Is there anything basic that i’m not doing?

To get the posts to show I added this function to lib/custom.php:

add_filter( 'pre_get_posts', 'my_get_posts' );
function my_get_posts( $query ) {
  if ( ( is_home() && $query->is_main_query() ) || is_feed() )
    $query->set( 'post_type', array( 'post', 'wedding-shoot', 'family-shoot', 'commercial-shoot' ) );
  return $query;
}

However nothing shows up in the categories or archive sections of the sidebar.

Any help would be much appreciated.

Thanks,
Joe x

This is a general WordPress issue: