Functions file with custom post types