How to List and Show WordPress Posts That Comments and Pings Off (Not Allow)如何查看名单和职位WordPress的评论和坪关闭(不允许)

WordPress blog publishing platform allows individual author to override global discussion setting and set whether to allow reader to post comment on the article, or whether to allow link notification (aka pingback and trackback) from other blogs at single post or page level. WordPress的博客发布平台允许个人凌驾于作者讨论全球规定设置和是否允许读者张贴评论文章,或是否允许连结的通知(又名pingback和引用)由其他blog单邮寄或网页的水平。 The feature allows all new posts and pages to be created with comments and pings on, but can always be turned off on specific posts or pages when needed.该功能可让所有新员额和网页创建意见和坪,但总是可以关闭的具体职位或网页时,需要。

When come to time to housekeeping, WordPress does not provide an easy way to list or show all posts or paged articles that has its comments and pings off.当来的时候家务, WordPress的不提供一种简单的方式,列表或显示全部职位或分页的文章,有它的意见和坪赶走。 For blog administrators who want to see a list blog posts and articles that have forbid readers and visitors to leave comments, and stop other blogs to pingback or trackback, use the following trick to list out all posts and pages that are currently set to comment and pingback/trackback off.对于博客管理员谁希望看到一个清单博客帖子和文章有禁止读者和游客留下意见,并停止其他博客pingback或引用,请使用下面的把戏,列出所有职位和网页,目前正在为评论和pingback /引用赶走。

Log on to the MySQL database that powers the WordPress blog, and then use the following SQL query statement to get all posts or pages that either comment is not allowed, pings (trackback and ping back) is not allowed or both.登录到MySQL数据库的权力WordPress的博客,然后使用下面的SQL查询的发言得到所有职位或网页,或者评论是不允许,坪(跟踪和平回)是不允许的或两者兼施。

SELECT * FROM `wp_posts` where `comment_status` <> ‘open’ or `ping_status` <> ‘open’;

Tip: To make the selection from database easier, it’s recommended to use窍门:为了使从数据库选择更容易,这是推荐使用 phpMyAdmin or other GUI interface to MySQL DB.或其他GUI界面,到MySQL数据库。

The query above will return all row (both posts and pages in WordPress) that has either “Allow Comments” or “Allow Pings” set to off (untick).上述查询将返回所有行(包括员额和WordPress的网页)这是“允许评论”或“允许坪”设置为关闭( untick ) 。 To return only articles where comments is not allowed, use only “comment_status”, or “ping_status” for articles that do not allow pingback and trackback.要返回的条款只在评论是不允许的,只能使用“ comment_status ” ,或“ ping_status ”的文章,不允许pingback和跟踪。

Both comment_status and ping_status fields have only two easily understand values - open and closed.这comment_status和ping_status领域只有两个容易理解的价值观-开启和关闭。 Open means allow, which closed means disallowed.开放式的手段让,这意味着不允许关闭。 Once the result is displayed, the posts that have one or both of the criteria can be determined, and changed if required.一旦结果显示,职位有一个或两个标准才能确定,而且如果需要改变。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明:这是一台机器翻译网页是“现状”提供不附带。 Machine translation may be difficult to understand.机器翻译可能是很难理解。 Please refer to请参阅 original English article英文原文的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at共享和贡献或获得技术支持和帮助 My Digital Life Forums 我的数字生活论坛 .



Leave a Reply留下回复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些标签: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> “省日期时间= “ ” “的<em> <i> <q cite=""> <strike>的<strong>

Subscribe without commenting没有评论订阅


Custom Search

New Articles新文章

Incoming Search Terms for the Article收到的搜索字词的文章

"allow comments" in wordpress delete comments “允许评论”在WordPress的删除意见 - - wordpress display all posts link WordPress的显示所有职位连结 - - wordpress allow pings WordPress的允许坪 - - trackbacks show wordpress 搬场显示WordPress的 - -