• Hi

    I have the following problem: I have two CPT named Company and Person and now I want to make a connection between them.

    So basically I would like to have a selection list of all companies in the person cpt-admin – perfectly with multiple select (if a person works for more companies – e.g. freelancers)

    And then on the frontpage I can go to a company page and show all persons working for that company.

    thanks werner

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mosabua

    (@mosabua)

    Does no one have a clue on this one?

    No, but perhaps you shouldn’t have made two custom poste types, but one custom post type and a custom taxonomy. That way it will work like categories and tags in combination with normal posts.

    Thread Starter mosabua

    (@mosabua)

    The problem is that I have plenty of custom fields on both custom post types, otherwise the taxonomy would be fine …

    you could store the link info in a custom field too. but you’ll have to code your own metabox and your own loop to display it in the format you need.

    Thread Starter mosabua

    (@mosabua)

    Found a plugin named Posts2Posts which makes the linking possible

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Connect two Custom Post Types’ is closed to new replies.