Home > CMS Tutorial > WordPress > body text

How to set up two levels of WordPress article page

下次还敢
Release: 2024-04-15 20:12:16
Original
1049 people have browsed it

WordPress article pages can be set up with a dual-level structure to improve article organization and navigation. Here's how to do it: Enable hierarchy: In your dashboard, go to Settings > Writing and check the "Enable parent section hierarchy" option. Create a parent level: Select "None" in the "Parent Section" drop-down menu, enter the parent level title and content, and publish. Create a sub-level: Select the parent level title in the "Parent Section" drop-down menu, enter the sub-level title and content, and publish. By doing this, the child level will be nested under the parent level.

How to set up two levels of WordPress article page

WordPress article page dual-level setting

Setting dual-level in WordPress article page can make the article structure Clearer and easier to navigate. Here’s how to do it:

Step 1: Enable Hierarchy

  • Log in to your WordPress dashboard.
  • Go to Settings >Writing.
  • Check the "Enable parent section hierarchy" option.
  • Click "Save Changes".

Step 2: Create a parent hierarchy

  • Click "Posts".
  • Click "Add New Post".
  • In the "Parent Section" drop-down menu, select "None".
  • Enter the title and content of the parent level.
  • Click "Publish".

Step 3: Create a sub-level

  • Click "Posts".
  • Click "Add New Post".
  • In the "Parent Section" drop-down menu, select the title of the parent level.
  • Enter the title and content of the sub-level.
  • Click "Publish".

In this way, the child level will be nested under the parent level, forming two hierarchical structures.

Setting example

Parent level:

  • Title: "Sports"
  • Content : "Overview of the Movement"

Sub-level:

  • ## Sub-level 1:

      Title: "Football"
    • Content: "Football Game Rules"
  • ##Sub-Level 2:

    Title: "Basketball"
    • Content: "Basketball Game Rules"
Note:

The maximum depth of the hierarchy is 5 levels.
  • Child levels must be associated with the parent level to be displayed in the hierarchical structure.
  • When hierarchy is enabled, existing articles will not be automatically assigned to the hierarchy. You need to manually move them to the appropriate level.

The above is the detailed content of How to set up two levels of WordPress article page. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!