check post type to prevent output on cpt