Funny thing about us:

We think your sites should look exactly the way you want them to.

Custom Content Type Manger (CCTM) hierarchical post type issue workaround?

Since the release of WordPress 3.7 there has been a problem with hierarchical post types in Custom Content Type Manager (CCTM).  Level 2 pages have been showing as 404 errors and the issue was raised in this thread. the gout code on foot  Understandably, the plugin’s author can’t react to every surprise change in the architecture of WordPress – especially when the plugin is free.

Because I ABSOLUTELY NEEDED THIS TO WORK I was willing to try anything including updating the plugin itself.  Then I ran across this post that showed a semi-workaround, but it only worked on the top level posts.  So with a little addition to that code I was finally able to get the 2nd-level pages to work!

For simplicity’s sake (and because I couldn’t figure out any other way to do it) I just created one function and one hook for each post type.  This code was added to my functions.php file.


About Matt Sartori

Matt is the owner of Tune Development, a web development company in Indianapolis that specializes in letting design firms and ad agencies take credit for its work.