Add "global $post;" to allow breadcrumbs function to work