conditionalizing html view to this post type