wordpress创建
Do you want to create a child page on your site? Pages in WordPress can be standalone or hierarchical, which means a page can have its own sub-pages also known as child pages. In this article, we will show you how to easily create a child page in WordPress to better organize your pages.
您要在网站上创建子页面吗? WordPress中的页面可以是独立页面,也可以是分层页面,这意味着页面可以具有自己的子页面,也称为子页面。 在本文中,我们将向您展示如何轻松地在WordPress中创建子页面以更好地组织页面。
WordPress中的子页面是什么? (What is a Child Page in WordPress?)
Pages and posts are two default content types in WordPress. To learn more, see our guide on the difference between posts vs pages in WordPress.
页面和帖子是WordPress中的两种默认内容类型。 要了解更多信息,请参阅有关WordPress中帖子与页面之间区别的指南。
Posts are part of a blog and are displayed in a reverse chronological order (newer entries first). They are normally organized with categories and tags.
帖子是博客的一部分,并以相反的时间顺序显示(首先是更新的条目)。 它们通常按类别和标签进行组织。
Pages are one-off or standalone content that is not part of a blog. For example, ‘About us’ page or ‘Contact us’ page. They can be hierarchical, which means you can organize them with parent and child pages.
页面是一次性的或独立的内容,不属于博客。 例如,“关于我们”页面或“联系我们”页面。 它们可以是分层的,这意味着您可以使用父页面和子页面来组织它们。
Typically, business websites use Pages to build a website structure. This way they can build a website without creating a blog. Those who want to add a blog to their content marketing strategy can still do so by simply creating a separate blog page.
通常,商业网站使用页面来构建网站结构。 这样,他们可以创建网站而无需创建博客。 那些想在其内容营销策略中添加博客的人仍然可以通过简单地创建单独的博客页面来这样做。
However if you have too many pages, then it becomes difficult to organize them. This is where child pages come in. You can create a broader page as a ‘Parent’ and then add child pages to better organize your website structure and layout.
但是,如果页面太多,则很难组织它们。 这是子页面进入的地方。您可以创建一个更宽的页面作为“父”页面,然后添加子页面以更好地组织您的网站结构和布局。
For example, a parent page called ‘About us’ can have team members, history, careers, and other pages as child pages.
例如,一个名为“关于我们”的父页面可以将团队成员,历史,职业和其他页面作为子页面。
Any child page can also have their own child pages and so on. This way you can build relationships between your pages and create a proper website structure.
任何子页面也可以具有自己的子页面,依此类推。 这样,您可以在页面之间建立关系并创建适当的网站结构。
That being said, let’s take a look at how to easily create a child page in WordPress.
话虽如此,让我们看一下如何轻松地在WordPress中创建子页面。
如何创建子页面? (How to Create a Child Page?)
To create a child page, you will need a parent page. If you already have a page that you would like to use as the parent, then you are good to go.
要创建子页面,您将需要一个父页面。 如果您已经有想要用作父页面的页面,那么就很好了。
Simply go to the Pages » Add New to create a new page or edit an existing page in your WordPress admin area. On the right side, you will see Page Attributes box with Parent dropdown.
只需转到页面»添加新页面即可创建新页面,或在WordPress管理区域中编辑现有页面。 在右侧,您将看到带有父级下拉列表的页面属性框。
In the Parent drop-down, you will see the list of all pages from your site. By default, it is set to ‘no parent’ which means this page is an individual page with no association. You need to select the page you want to use as the parent from the drop-down menu.
在“ 父级”下拉列表中,您将看到站点中所有页面的列表。 默认情况下,它设置为“ no parent”(无父),这意味着此页面是没有关联的单个页面。 您需要从下拉菜单中选择要用作父页面的页面。
After that, you can just go ahead and save your changes. You can repeat this process to create more child pages.
之后,您可以继续保存更改。 您可以重复此过程以创建更多的子页面。
To view child pages, you can go to the ‘Pages » All Pages’ page in WordPress admin area. You will see child pages listed under their parent page with a — prefix.
要查看子页面,可以转到WordPress管理区域中的“页面»所有页面”页面。 您会在子页面的父页面下看到带有-前缀的子页面。
Next, you can go ahead and add your child pages to your website’s navigation menu as sub-menu items.
接下来,您可以继续并将子页面作为子菜单项添加到网站的导航菜单中。
Advanced users can use other methods to automatically display a list of child pages for a parent page in WordPress sidebar widgets or theme templates.
高级用户可以使用其他方法在WordPress侧边栏小部件或主题模板中自动显示父页面的子页面列表 。
We hope this article helped you learn how to create a child page in WordPress. You may also want to see our complete guide on how to convert WordPress categories to custom taxonomies to sort the content on your site.
我们希望本文能帮助您学习如何在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/beginners-guide/how-to-create-a-child-page-in-wordpress/
wordpress创建