Don't try to replace custom fields when current page is not a post type page