Organizing WP Pages with Page Parent Attribute
by Sammy Russo on June 1st, 2011
Before you start building out your CMS site with WordPress you should give some thought to the pages you need to create and how those pages need to be organized.
In step 12 of the Development Process we created two pages (Home and Blog). For the sake of this explanation let’s say we want to also create 3 different service pages, an about, and a contact page. Pretty straight forward, we go to Page > Add Page and create away. But how do these pages need to be organized?
In the WP Page Editor screen, under the Publish Box on the right side there should be a Page Attributes box. For most of the pages that we want to create we’d leave these toggles alone.
I would however use the Parent Attribute for the service pages. For our demo we are creating 3 service pages; 1 main services page and 2 sub pages.. 1 for each service. We would make the main services page the parent to the sub pages. To do this, first create the main service page and publish it. Next, create the sub pages, but before you publish them, toggle the Page Parent and select the main service page from the list.
Our website hierarchy would look something like this…
- About Page
- Main Service Pg
- Sub Service Page
- Sub Service Page
- Blog Page
- Contact Page
Benefits by doing so are; Your site will be better organized. It also gives you more opportunities to squeeze in some keyword phrases into the page slugs.
Planning and organizing all your pages ahead of time and how they will relate as parents and children will help keep things running smooth. Plan even farther by sculpting your page slugs and you’ll really be in good shape. The more you create, change, move and delete stuff to get it right by doing things on the fly, the bigger a mess you are creating in the database. Organizing in advance keeps the system and the database from having to work too hard. Clogged up databases eventually lead to slower page load times, php memory errors and lost visitors.