Fixed so remove function works for all post types that are defined in the page type. Will fallback to page if we dont have any in our page type