Search Over 18,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Hierarchy

Properly structure your Pages, Posts, and Custom Post Types

Hierarchy allows you to contextually include your Custom Post Types within your Pages. Please see the introduction.

Author Jonathan Christopher
Profile
Contributors jchristopher
Tags CPT, custom post types, hierarchy, pages, routing, url
  1. hierarchy screenshot 1

    Multiple native Custom Post Types

  2. hierarchy screenshot 2

    Same site with Hierarchy activated and Custom Post Type entries disabled in the navigation

  3. hierarchy screenshot 3

    Hierarchy Settings

  1. Upload Hierarchy to your /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

0.4

  • You can now implement pagination on the main 'Content' page
  • Aded entry count when considering CPTs to better call attention to posts within
  • Cleaned up a PHP Warning

0.3

  • Added a fix for CPTs not being nested properly in WordPress 3.4+

0.2

  • Added a contextual CPT management link to the admin sidebar that displays only when editing an entry of that CPT
  • Added option to include CPT entries within the Hierarchy. Added option to omit a CPT from the Hierarchy entirely.
  • CPT with a rewrite slug that matches an existing Page will respect that relationship and be inserted as a child of that Page
  • Posts Page is now placed properly when a custom permalink front has been put in place

0.1

  • Initial release

How to I set up a Custom Post Type as a child?

This relationship is established by the rewrite parameter you used in your call to register_post_type() — it should use your desired parent as a base. For example:

You have a WordPress page with the slug of about and you have a CPT for Team. Simply set the rewrite parameter for your Team CPT to be about/team and Hierarchy will include Team as a child of About.

Roadmap

  • Edge case fixes
Share  
Download
Version 0.4

Requires WordPress version: 3.3 or higher

Compatible up to: 3.5.1

Last Updated 20 Mar 2013

Date Added: 05 Jan 2012

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

4.33 stars
6 ratings
1,512 downloads

Compatibility

Not Enough Data

Reports:
Works: 1
Broken: 0