Added post type conditional to functions.php