Added Film custom post type functionality and fixed template errors