treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Linking a post type to a parent page?

  • I think I'm missing something essential here about WordPress, but is there a way to link a post type (custom post type) to a parent page?

    For example, if I have an Article under a page called Resources:

    http://www.econesthomes.com/our-resources/articles/

    When I click to the single view of the article:

    http://www.econesthomes.com/article/healthy-building/

    The permalink loses it's structure. I figured out to fix this through the rewrite function, but this does not help me when trying to install breadcrumbs.

    How can I have the single view of a post retain it's link to it's parent page?
  • I just logged on to post the same question here. I have spent a ton of time researching other sites and the official WordPress forums without any luck. This seems like a major problem with the usefulness of custom post types, there has to be a way to at least trick the built-in WordPress nav menus into thinking another page is the parent of the post type. Hopefully somebody can help figure this out!
  • Gonna bump this for good measure...
  • Unfortunately, custom post types are not meant to go into the permalink structure. That's pretty much all there is to it.

    There is, however, a plugin! I haven't tested it, but I think this answers your question?
    http://wordpress.org/extend/plugins/custom-post-permalinks/