I have a lot of custom type items in my new WP project, and for navigation reasons, I want to make the parent to some of them a WordPress page. The problem is that apparently, WordPress does not let you establish parent-child relationships between items with different post type.

Is there anyway to override this? I am using WordPress 3.1

2 s
2

There are way’s to get around it to create this kind of grouping or relationship:

  1. “manually” – set the post_parent
    field to the parent ID (by manually
    i mean code something that will do
    that for you when you publish a
    CPT).
  2. Using a shared custom taxonomy to
    create a grouping of posts and you
    will have the ability to filter /
    query posts based on that taxonomy
    term.
  3. using a post meta field (custom field) on your custom post type that will hold the parent page id and once again have the ability to to filter /
    query posts based on that custom field
  4. using a plugin like Posts 2 Posts which uses a db table to create a many to many relation between posts and adds some cool query features.

depends on your needs but i think at least one of these should do the job.

Leave a Reply

Your email address will not be published. Required fields are marked *