Post Parents 0.2.0

Normally, flat post types such as the Post post type do not have parents. However, some like to use pages for their hierarchy and want posts to be children of these pages. While I do not recommend this type of site structure, Breadcrumb NavXT has supported Pages as the parent of Posts for quite some time. In a recent version this was extended to all post types, using the “post parent” selection for the post hierarchy.

The caveat has always been that setting the parent of the post was an exercise left to the user. Last summer, I wrote a fairly basic plugin that makes things easier. Previously meant only for the Post post type, this new version extends post parents to all post types (except for Pages as that wouldn’t make sense). It simply adds a Parent metabox with a pages drop down to the edit screen for posts (of any post type).

Eventually, this will make it into the official WordPress.org plugin repository so everyone will get update notifications. Until then, you’ll have to manually update (by first deleting and then re-installing).

Installation is quite easy:

  1. Download the Master branch zip archive from GitHub
  2. In your WordPress Dashboard navigate to the plugin uploader (Plugins > Add New > Upload)
  3. Upload the zip archive
  4. Activate and enjoy!

You can keep up with day to day development via the Post Parents’ GitHub Repository.

-John Havlik

[end of transmission, stay tuned]

4 thoughts on “Post Parents 0.2.0

  1. Hey, this is perfect! One question – how can I insure that the new url scheme for custom post types are read correctly once they’ve got a page for a parent? I’m getting a 404 once I set a page as parent…

    • Ryan,

      This will not affect the URL scheme for CPTs. It only establishes a parent for individual posts (of any post type other than page). Breadcrumb NavXT should generate valid links (it is using the WordPress API for all URL generation so if the URL is incorrect/broken you likely have a configuration issue).

      -John Havlik

  2. Hello John,
    I need your help to understand how can i use post parent plugun for assigning parent page to individual post .
    Quick help will be appreciated

    • Install the plugin, and activate it. Go edit a post, you should now have a “Parent” box on the right side of the edit screen, it may be near the bottom of the screen. If it is not showing up, click on the “Screen Options” tab in the upper right hand corner of the screen and make sure “Parent” is selected.

      In the “Parent” box, use the dropdown to select the page you wish to have as a parent for the post. After making changes, remember to save you post.

      -John Havlik

Comments are closed.