Functionalized allow_comments posts and pages since they are very similar.