Title: [Plugin: Posts 2 Posts] Call a custom field via posts2posts
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Call a custom field via posts2posts

 *  [brandrick](https://wordpress.org/support/users/brandrick/)
 * (@brandrick)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-call-a-custom-field-via-posts2posts/)
 * I am trying to use data from two linked items. For example I have a game and 
   an associated review.
 * On the homepage the latest review is being pulled and displayed, and I would 
   like it to display which platform (Xbox, Wii, etc) the game review is referring
   too. I have a custom field for this (platform).
 * I have linked the two pieces of content (review and game) using posts2posts, 
   and I am now wondering how to call a (game) custom field.
 * The usual meta reference (`<?php meta('platform'); ?>`) does not work in this
   scenario, but I’m struggling to think how to get around this. Any advice would
   be greatly appreciated.
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-call-a-custom-field-via-posts2posts/#post-2894729)
 * So ‘platform’ is a post custom field, not a connection custom field, yes?
 * PS: meta() is not a core WP function. It probably comes from a plugin, so I don’t
   know how it works.
 *  Thread Starter [brandrick](https://wordpress.org/support/users/brandrick/)
 * (@brandrick)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-call-a-custom-field-via-posts2posts/#post-2894756)
 * Platform is a connection custom field.
 * The review is the post, and that review is connected to a game (custom post),
   and its this game which has the platform field.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-call-a-custom-field-via-posts2posts/#post-2894757)
 * First you say it’s a connection field, then you say it’s attached to a ‘game’
   post.
 * This is a connection field: [https://github.com/scribu/wp-posts-to-posts/wiki/Connection-information](https://github.com/scribu/wp-posts-to-posts/wiki/Connection-information)
 * Also see [http://wordpress.org/support/topic/plugin-posts-2-posts-grab-connect-meta-information-when-displaying-queried-results](http://wordpress.org/support/topic/plugin-posts-2-posts-grab-connect-meta-information-when-displaying-queried-results)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Posts 2 Posts] Call a custom field via posts2posts’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [posts2posts](https://wordpress.org/support/topic-tag/posts2posts/)

 * 3 replies
 * 2 participants
 * Last reply from: [scribu](https://wordpress.org/support/users/scribu/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-call-a-custom-field-via-posts2posts/#post-2894757)
 * Status: not resolved