如何禁用对 wordpress 页面的评论?
How to disable comments on Page on wordpress?
我创建了一个页面
http://www.example.com/sitemap
该页面上有一些静态内容。在模板 homepagete_hierachy 下即将到来。
但是我在那个页面上收到了评论。如何禁用该页面上的评论
这是我的页面模板
<?php
get_header(); ?>
<div id="content">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
</div>
<?php get_footer(); ?>
进入编辑页面,然后在右上角有"Screen options",点击那里并确保"Discussion"和"Comments"被选中。然后您将在页面文本区域下方看到复选框,以允许或禁止该页面的评论和引用。
我创建了一个页面
http://www.example.com/sitemap
该页面上有一些静态内容。在模板 homepagete_hierachy 下即将到来。
但是我在那个页面上收到了评论。如何禁用该页面上的评论 这是我的页面模板
<?php
get_header(); ?>
<div id="content">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
</div>
<?php get_footer(); ?>
进入编辑页面,然后在右上角有"Screen options",点击那里并确保"Discussion"和"Comments"被选中。然后您将在页面文本区域下方看到复选框,以允许或禁止该页面的评论和引用。