如何在WordPress中创建自定义分类
作者:98wpeu发布时间:2024-01-15分类:WordPress教程浏览:147
是否要在WordPress中创建自定义分类?
在默认情况下,WordPress允许你用类别和标签组织你的内容。但使用自定义分类法,您可以进一步自定义对内容进行排序的方式。
在本文中,我们将向您展示如何在WordPress中轻松创建自定义分类。


在此屏幕上,您需要执行以下操作:
creating your classification plugs(which will contain in your URL) 创建复数标签 创建单一标签 自动填充标签您的第一步是为分类创建一个插件。此插件用于URL和WordPress搜索查询。
它只能包含字母和数字,并且会自动转换为小写字母。
接下来,您将为您的定制分类填写复数和单数名称。
在那里,您可以选择点击链接“根据所选标签填充其他标签”。如果您这样做,那么插件将自动为您填充其余的标签字段。
现在,向下滚动到“附加标签”部分。在此区域中,您可以提供对您的帖子类型的描述。

When you edit and manage specific self-defined classification content,these tags will be used in your WordPress仪表板.
接下来,我们有设置选项。在此区域中,您可以为您创建的每个分类设置不同的属性。每个选项都有一个描述,详细说明它的作用。

在上面的屏幕截图中,您将看到我们选择了将该分类分层。这意味着我们的分类“主题”可以有子主题。例如,一个名为Fiction的主题可以有子主题,如幻想、黄昏、神鬼等。
In this paper,the author introduces the principle and the application of the mechanism of mechanical mechanism.
现在,您可以点击底部的“添加分类”按钮来保存您的自定义分类。
随后,继续在WordPress内容编辑器中编辑与此分类相关联的种子类型以开始使用它。


接下来,您将转到“创建自定义代码片断”页面。只需命名您的新代码片段,并将以下代码粘贴到文本区域。

不要忘记将代码片段中的分类名称和标签替换为您自己的分类标签。You还注意到,该分类与Books POST类型相关联,你需要将其更改为你想要使用的任何POST类型。
接下来,向下滚动,确保在插入框中选择了“自动插入”和“随处运行”。

完成后,您可以滚动回到顶部,然后单击“更新”按钮将您的更改实时推送到屏幕上。
2.创建非层级分类
In this paper,we study the relationship between the mechanism of the mechanism and the mechanism of the

同样,请确保编辑代码以包括您自己的定制分类标签。

在本教程中,我们将选择“在帖子之后插入”。
您可以在下面的图像中看到它将如何显示在您的实时站点上。


在此屏幕上,您将看到4个区域:
名字 鼻涕虫 父级 描述在名称中,您将写出您想要添加的术语。You can pull over slug part and provide the description(optional)of this specific term.
最后,单击“添加新主题”按钮以创建新的分类法。
您新添加的术语现在将显示在右栏中。

现在,您有了一个可以在博客文章中使用的新词。
您还可以在编辑或编写该特定帖子类型下的内容时直接添加术语。
只需转到图书»添加新内容用于创建帖子的页面。在文章编辑器中,您可以从右栏中选择或创建新的术语。

添加术语后,您可以继续发布该内容。
You're going to be a little bit late. For example,prout subjects submitted under the novel topic will appear in the following URL:
https://example.com/subject/fiction/


别忘了点击“保存菜单”按钮来保存你的设置。
现在,您可以访问您的网站来查看您的菜单的运行情况。

关于更多细节,请参考我们关于如何在WordPress中创建下拉菜单的分步指南。
进一步扩展WordPress分类法
使用定制分类法可以做的事情有很多。例如,您可以在侧栏小部件中显示它们,或者为每个术语添加图像图标。
您还可以在WordPress中为自定义分类添加启用RSS提示,并允许用户订阅单独的术语。这样一来,你的读者将只会收到对他们来说重要的特定内容的更新。
In this paper,we study the relationship between the mechanism of the mechanism and the mechanism of the它是一个开放式WordPress界面构建器和主题构建器,允许您创建自定义布局,而无需任何编码。
We hope this text can help you learn how to create self-defined classification in WordPress. You may also want to see our guidelines,about how to track website visitors,and how to create a self-defined WordPress topic in the situation of not writing any code
更多wp网站技巧请关注我们。
- WordPress教程排行
- 最近发表