I'm trying to create a site where a 'Game' has a set of information (im thinking it will be a custom post type, with a 'link' field, 'developer' as a taxonomy, 'price', 'release date' and some other information.

I want to be able to make a post, in a category (such as 'reviews') which links to the relevant game and can pull some of this metadata into a template.

SO... the review is it's own post, it has it's own info, tags etc. BUT. is linked to the 'Game' so i can pull in the 'price', 'developer' information etc. AND when i go to the game page, i should be able to find the articles linked to it via the taxonomy.

Is there a way to do this? I have given it some substantial googling to no avail. Any ideas, thoughts or links would be greatly appreciated.

1 Answer 1


I would create a separate Reviews CPT. In the Reviews write screen, I would add a metabox with a select input contain each Game CPT as an option. Using the metabox, you can associate the Game ID as postmeta with the Review. Finally, in your template page that displays the review, you can easily retrieve the Game ID, which will allow you to display all of the relevant Game information on the Review page.

For an even easier solution than the metabox, you can simply add a custom field like "game_id" and manually add the game id. It's simpler than creating a metabox, but it's not as pretty :)

  • 1
    Brill! I get what your saying, sounds perfect. One further Q then... Am I able to get the meta box to act like a taxonomies box? So you simply need type in the title of the Game CPT to add it's game_id? Any chance you can provide an example, as I don't know where to begin with this
    – josh
    Commented Jul 21, 2011 at 9:40
  • You use add_meta_box to add the content area (shibashake.com/wordpress-theme/add-metabox-custom-post-type), and in the metabox, you'll want to print out your games using a custom query using WP_Query. I have some code lying around that does something similar to this. If I can find it, I'll post it for you.
    – tollmanz
    Commented Jul 22, 2011 at 14:48
  • I just stumbled upon this today: scribu.net/wordpress/posts-to-posts. I think this may serve your purposes quite well. Mr. Scribu hangs around here often and I'm sure he'd be able to address this.
    – tollmanz
    Commented Jul 22, 2011 at 17:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.