Register wordpress custom post types using advanced custom fields