Keep WordPress Pages Organized

Install WordPress icon

WordPress Pages and WordPress Posts are identical in storage terms, yet only Posts can be organized with Excerpts, Categories, and Tags.

Excerpts are invaluable summaries for Posts that make your WordPress Blog easier to read. The best themes use them in the Blog page, and all the archives. I think that presentation helps your visitors find the information they want much more easily than scrolling down pages of complete articles.

Of course, this is a personal preference. Irrespective of how excerpts are displayed, I highlighted their usefulness in Easy Meta Description. Plugins often allow meta descriptions by adding an extra field. Personally, I cannot see the point of that, when the Excerpt field is already available. If only there was a way to show that Excerpt field on the WordPress Page form.

Similarly, Tags and Categories make WordPress Posts much more accessible to visitors. In the early days of SEO (about a year ago!), Tags and Categories were vital for organizing content by keyword for search engines. Now that SEO must be more visitor focused, we find that Tags and Categories are the ideal way to show visitors important relationships in content. I’m more passionate about tagging and categorizing now that I’m visitor focused. If only there were ways to add Tags and Categories to WordPress Pages.

If only all your wishes could come true so easily

Excerpts, Categories, and Tags for WordPress Pages

Install WordPress iconThis extra functionality is not important early in your WordPress installation, but you might as well do it before adding too many pages. Otherwise, you have lots of editing to do, rather than add summaries and organization as you go.

As with most of my WordPress code snippets, I recommend you add these to the Functionality plugin, rather than editing your theme functions.php.

function attach_taxonomies_to_page() {
	register_taxonomy_for_object_type('category', 'page');
	register_taxonomy_for_object_type('post_tag', 'page');
add_post_type_support( 'page', 'excerpt' );
add_filter('request', 'add_pages_to_post_request');
function add_pages_to_post_request($q) {
	if (isset($q['tag']) || isset($q['category_name'])) 
		$q['post_type'] = array('post', 'page');
	return $q;

The taxonomy functions add categories and tags to pages. They automatically add columns to the Admin Pages list, fields to the Quick Edit forms, and meta-boxes to the Page edit form.

The add_post_type_support function is very useful for controlling WordPress features, including excerpts. In future, I will look at extending this to common Custom Post Types for forums, eCommerce, etc.

The final filter ensures that pages are also included in archive index lists for tags and categories.

If you have questions or opinions about keeping WordPress Pages organized, please: