{"id":472,"date":"2020-08-05T14:03:05","date_gmt":"2020-08-05T14:03:05","guid":{"rendered":"https:\/\/wearesmile.com\/help\/?post_type=ht_kb&#038;p=472"},"modified":"2020-08-05T14:03:30","modified_gmt":"2020-08-05T14:03:30","slug":"creating-page-hierarchies-in-wordpress","status":"publish","type":"ht_kb","link":"https:\/\/wearesmile.com\/help\/documentation\/creating-page-hierarchies-in-wordpress\/","title":{"rendered":"Creating Page Hierarchies in WordPress"},"content":{"rendered":"\n<p class=\"has-medium-font-size\">Unlike posts, which are often organised into archives based on metadata, pages can be organised hierarchically in a parent\/child structure which is nice and clear to see in the back end of your site.<\/p>\n\n\n\n<p>Below is a screenshot of a \u2018Pages\u2019 listing containing the titles for some pages you might find on a typical college or university website.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wearesmile.com\/documentation\/wp-content\/uploads\/sites\/86\/2020\/02\/Screenshot-2020-02-21-at-14.48.27-1024x617.png\" alt=\"\" class=\"wp-image-123\"\/><\/figure>\n\n\n\n<p>These structure of these pages in relation to each other is currently \u2018flat\u2019 \u2013 ie. there is none. However we can start to change that.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img decoding=\"async\" src=\"https:\/\/wearesmile.com\/documentation\/wp-content\/uploads\/sites\/86\/2020\/02\/Screenshot-2020-02-21-at-15.03.33.png\" alt=\"\" class=\"wp-image-124\"\/><\/figure><\/div>\n\n\n\n<p>If we click on a page title \u2013 \u2018Who We Are\u2019 for example \u2013 as well as editing the content, we can also define the page\u2019s hierarchical structure. On the right hand side of the screen, there is a \u2018Page Attributes\u2019 section where we can assign a \u2018parent\u2019 page.<\/p>\n\n\n\n<p>In this case, I would like \u2018Who We Are\u2019 to be a subpage within the \u2018About Us\u2019 section so I\u2019m going to select \u2018About Us\u2019 as the parent page and then click \u2018Update\u2019 to save my changes. Now, navigating back to the page listing, we can see that \u2018- Who We Are\u2019 has been ordered below \u2018About Us\u2019 with a hyphen to denote its child status.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright\"><img decoding=\"async\" src=\"https:\/\/wearesmile.com\/documentation\/wp-content\/uploads\/sites\/86\/2020\/02\/Screenshot-2020-02-21-at-15.09.34.png\" alt=\"\" class=\"wp-image-125\"\/><\/figure><\/div>\n\n\n\n<p>You can assign as many child pages to a parent page as you like (although, not the other way around!) \u2013 and can even assign children to children if necessary. Grandchildren will appear with a double hyphen in the page listing.<\/p>\n\n\n\n<p>Below you can see the initial collection of pages organised into a much more functional hierarchy.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wearesmile.com\/documentation\/wp-content\/uploads\/sites\/86\/2020\/02\/Screenshot-2020-02-21-at-15.19.50-1024x661.png\" alt=\"\" class=\"wp-image-126\"\/><\/figure>\n\n\n\n<p><em>Bonus tip: most of the time, you\u2019ll be assigning page attributes on the fly as you create new content. If however, you have a big list of unorganised posts, you can quickly define parents\/children through post listing page by using the \u2018Quick Edit\u2019 tool which appears when hovering over an item:<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wearesmile.com\/documentation\/wp-content\/uploads\/sites\/86\/2020\/02\/Screenshot-2020-02-21-at-15.23.54-1024x493.png\" alt=\"\" class=\"wp-image-127\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Unlike posts, which are often organised into archives based on metadata, pages can be organised hierarchically in a parent\/child structure which is nice and clear to see in the back end of your site. Below is a screenshot of a \u2018Pages\u2019 listing containing the titles for some pages you might&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_searchwp_excluded":"","footnotes":""},"ht-kb-category":[92],"ht-kb-tag":[71],"class_list":["post-472","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-general","ht_kb_tag-wordpress"],"_links":{"self":[{"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb\/472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/comments?post=472"}],"version-history":[{"count":2,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb\/472\/revisions"}],"predecessor-version":[{"id":474,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb\/472\/revisions\/474"}],"wp:attachment":[{"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/media?parent=472"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb-category?post=472"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}