remove link when there is a private post type