Fixed post type bug for 2.2.6