Do you want to bulk delete WordPress posts? WordPress makes it super easy to manage posts from the admin area. However, if you want to delete a lot of posts then selecting and deleting them may take some time. In this article, we will show you two quick and easy solutions to bulk delete WordPress posts from your blog.
您要批量删除WordPress帖子吗? WordPress使从管理区域管理帖子变得超级容易。 但是,如果您想删除很多帖子,那么选择和删除它们可能需要一些时间。 在本文中,我们将向您展示两种快速简便的解决方案,以从您的博客中批量删除WordPress帖子。
(Video Tutorial)
演示地址
If you don’t want to watch the video tutorial, then you can continue reading the text version below:
如果您不想观看视频教程,则可以继续阅读以下文本版本:
(Method 1. Bulk Delete WordPress Posts without Plugin)
This method is easier and is recommended for all users. It uses the built-in WordPress functionality to quickly select a large number of posts and delete them.
此方法更简单,建议所有用户使用。 它使用内置的WordPress功能快速选择大量帖子并将其删除。
First, you need to visit Posts » All Posts page. From here you can click on the bulk select box on top to select all posts displayed on the page.
首先,您需要访问帖子»所有帖子页面。 在这里,您可以单击顶部的批量选择框以选择页面上显示的所有帖子。
If you don’t want to delete all of the selected posts, then you can now go ahead and uncheck those posts. Otherwise, you can click on the ‘Bulk Options’ drop-down menu and select ‘Move to Trash’ option.
如果您不想删除所有选定的帖子,则可以继续并取消选中那些帖子。 否则,您可以点击“批量选项”下拉菜单,然后选择“移至垃圾箱”选项。
Next, you need to click on the ‘Apply’ button to delete selected posts.
接下来,您需要点击“应用”按钮以删除所选帖子。
WordPress will now move the selected posts to trash.
WordPress现在将选定的帖子移到回收站。
Using this default method, you can only select 20 posts at a time. What if you wanted to delete hundreds of posts?
使用此默认方法,一次只能选择20个帖子。 如果您想删除数百篇文章怎么办?
Simply click on the ‘Screen Options‘ button at the top right corner of the screen. This will bring a pull-down menu where you need to change the ‘Number of items per page’ to any number you want.
只需单击屏幕右上角的“ 屏幕选项 ”按钮。 这将带来一个下拉菜单,您需要在其中将“每页的项目数”更改为所需的任何数字。
Next, click on the Apply button and WordPress will display the number of posts you selected earlier. You can now go ahead and bulk delete posts as described above.
接下来,单击“应用”按钮,WordPress将显示您之前选择的帖子数。 您现在可以按照上述步骤继续删除帖子。
Note: Deleted posts will be moved to WordPress trash and will remain there for 30 days. After that, they will be permanently deleted from your WordPress database.
注意:已删除的帖子将被移到WordPress垃圾桶中 ,并在那里保留30天。 之后,它们将从您的WordPress数据库中永久删除。
Bulk Delete Posts by Specific Author or Category
按特定作者或类别批量删除帖子
Now let’s suppose you want to delete posts filed under a specific category / tag or written by a specific author? You can simply click on the author, category, or tag links to display posts associated with them.
现在,假设您要删除在特定类别/标签下提交或由特定作者撰写的帖子? 您只需单击作者,类别或标签链接即可显示与其相关的帖子。
For example, clicking on the ‘News’ category will show you the list of posts filed under that category. You can then select the posts and move them to trash by using the Bulk Options menu.
例如,单击“新闻”类别将显示该类别下的帖子列表。 然后,您可以使用“批量选项”菜单选择帖子并将其移至垃圾箱。
(Method 2: Bulk Delete WordPress Posts using a Plugin)
The default bulk delete options are quite adequate for most users. However, there are some cases where you may need more options to quickly select specific posts and then bulk delete them.
对于大多数用户,默认的批量删除选项已足够。 但是,在某些情况下,您可能需要更多选项来快速选择特定帖子,然后将其批量删除。
For example, if you want to delete posts filed within last few days or posts older than a certain number of days?
例如,如果您要删除过去几天内提交的帖子或超过一定天数的帖子?
Luckily, there is a plugin that lets you bulk delete posts using advanced filters.
幸运的是,有一个插件可让您使用高级过滤器批量删除帖子。
First, you need to install and activate the Bulk Delete plugin. For more details, see our step by step guide on how to install a WordPress plugin.
首先,您需要安装并激活批量删除插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。
Upon activation, go to Bulk WP » Bulk Delete Posts page in your WordPress admin area to delete posts. The plugin offers multiple ways to filter and select posts that you want to delete.
激活后,转到WordPress管理区域中的“ 批量WP»批量删除帖子”页面以删除帖子。 该插件提供了多种方法来过滤和选择要删除的帖子。
You can filter posts by duration, select posts published in last x days, delete them instantly without sending to trash, and even schedule to delete later.
您可以按时长过滤帖子,选择最近x天发布的帖子,立即删除它们而不发送到垃圾箱,甚至计划以后再删除 。
As you scroll down further in the settings screen, you will find more options to select and delete posts by categories, custom taxonomies, custom post types, and more.
在设置屏幕中向下滚动时,您会发现更多选项,可以按类别, 自定义分类法 , 自定义帖子类型等选择和删除帖子。
Bulk Delete can also be used to bulk delete comments, pages, users, and custom fields.
批量删除还可以用于批量删除评论,页面,用户和自定义字段。
We hope this article helped you learn how to easily bulk delete WordPress posts using these two methods. You may also want to see our list of the best WordPress plugins for business websites.
我们希望本文能帮助您学习如何使用这两种方法轻松批量删除WordPress帖子。 您可能还想查看我们用于商业网站的最佳WordPress插件列表。
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Facebook上找到我们。
翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-bulk-delete-wordpress-posts/