WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, either I'm searching for a plugin or I'll try to develop one for this purpose but I can't seem to find anything applicable. Perhaps I wasn't searching with the correct terms.

What I have setup is something like this: there are 3 types of posts/pages that I want to relate to one another. Lets say I have a baseball player as a post. That player has an agent and a team they play for. When I go to their edit-post area in the Wordpress admin I want to be able to have a drop-down list that allows the admin to choose who their agent is from a pool of all agent's in the system. A similar drop down would let you designate what team they play for from a pool of all teams in the system.

In addition to this, each team and each agent would have the same functionality. As an admin, you would be able to inter-relate each type of post (player/team/agent) using a similar method.

Basically, it would look in the database for all of the posts with the category "player", "team" and "agent", then let you link them together, either once or multiple instances for a post so that when you go to the players page, you can find out their agent's info and their team info, all with the ability to go to the agent's post or team post as well.

Any idea if something exists or what I may be looking for?

share|improve this question

migrated from stackoverflow.com May 15 '11 at 6:34

This question came from our site for professional and enthusiast programmers.

Unfortunately Post or object relationships is not possible in WordPress without doing a lot of extra work.

This feature is being actively discussed on this trac ticket any additional support for this would help our case of getting this included in core.

Your only options are:

  1. Use a plugin and modify it to fit your use case

  2. Map your posts to specially crafted taxonomies. (slow)

  3. Store relationships in postmeta. (very slow if you ever need to use that in a join statement)

  4. Create your own post2post table.

Further Reading:

share|improve this answer
Thanks - that helps. I ended up finding a plugin that seems to do similar to what I need. Just gotta modify and test it out. microkid.net/wordpress/related-posts – jpea May 13 '11 at 20:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.