如何在WordPress中正确重命名类别

Having a good structure on your site makes it easier for readers to find your content. This is why WordPress offers categories and tags to properly organize your content. To learn more about them check out Categories vs Tags guide. As your site grow, you might find a need to change the name of your categories and/or merge them with other categories. In this article, we will show you how to properly rename categories in WordPress without affecting your SEO strategies.

在您的网站上拥有良好的结构可以使读者更轻松地找到您的内容。 这就是WordPress提供类别和标签以正确组织您的内容的原因。 要了解有关它们的更多信息,请查看“ 类别与标签”指南 。 随着网站的发展,您可能会发现需要更改类别的名称和/或将其与其他类别合并。 在本文中,我们将向您展示如何在WordPress中正确重命名类别而不影响您的SEO策略。

影片教学 (Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

WordPress has a nice category management area, located at Posts » Categories.

WordPress有一个不错的类别管理区域,位于Posts»Categories

Category menu under posts in WordPress admin dashboard

On this page you can manage WordPress categories, edit existing categories, and delete unwanted categories. There are two ways to rename categories, the Quick Edit way, which allows you to change a category name and slug quickly.

在此页面上,您可以管理WordPress类别,编辑现有类别以及删除不需要的类别。 有两种重命名类别的方法,即“ 快速编辑”方法,它使您可以快速更改类别名称和从属。

Quick edit name and slug of a category

With quick edit you can change category name and slug but if you want to add description to a category then you need to click on Edit. This will take you to category edit page where you can change a category name, slug and description. You can also choose a parent category on this page.

通过快速编辑,您可以更改类别名称和子类别,但是如果要向类别添加描述,则需要单击“ 编辑” 。 这将带您进入类别编辑页面,您可以在其中更改类别名称,条目和描述。 您也可以在此页面上选择父类别。

Edit a category's name, description, slug, and parent

You can also merge and bulk edit your categories and tags. By merging you can combine two or more categories into one.

您还可以合并和批量编辑类别和标签 。 通过合并,您可以将两个或多个类别合并为一个类别。

One thing that you might want to keep in mind is that changing a category slug will change the category URL. So if you are using that URL in your WordPress menu then the link in the menu will not update itself. You would need to manually update that link to the new category url.

您可能要记住的一件事是,更改类别标签将更改类别URL。 因此,如果您在WordPress菜单中使用该URL,则菜单中的链接不会自动更新。 您需要手动将该链接更新为新的类别网址。

Once you have renamed your WordPress category, you will need to setup proper redirection for search engines and users. Use our tutorial on how to track 404 pages and redirect them in WordPress. This method allows you to redirect users coming from other sites as well as search engines to the correct category URL.

重命名WordPress类别后,您将需要为搜索引擎和用户设置适当的重定向。 使用我们的教程, 了解如何跟踪404页面并在WordPress中重定向它们 。 使用此方法,您可以将来自其他站点以及搜索引擎的用户重定向到正确的类别URL。

WordPress also allows you to change the /category/ prefix in category URLs. It is called category base. To change it go to Setttings » Permalinks and scroll down to Optional. There you will see a form to change category base and tag base. For example you can change http://www.example.com/category/your-category-slug/ to http://www.example.com/topics/your-category-slug/.

WordPress还允许您更改类别URL中的/category/前缀。 这称为类别库。 要进行更改,请转到“ 设置”»“永久链接”,然后向下滚动到“ 可选” 。 在那里,您将看到一个用于更改类别库和标签库的表格。 例如,您可以将http://www.example.com/category/your-category-slug/更改为http://www.example.com/topics/your-category-slug/。

Changing category base in WordPress Category URL

Using right keywords in your category names can increase your site’s SEO rankings. It also allows users to easily navigate through your site’s content. How often do you visit category management area to rename categories or add category descriptions? Let us know in your comments below.

在类别名称中使用正确的关键字可以提高网站的SEO排名。 它还允许用户轻松浏览您网站的内容。 您多久访问一次类别管理区域来重命名类别或添加类别描述? 在下面的评论中让我们知道。

翻译自: https://www.wpbeginner.com/beginners-guide/how-to-properly-rename-categories-in-wordpress/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值