[Resolved] [Plugin: Posts 2 Posts] Using posts to posts with custom post types
Firstly, thank you. This plugin is really helpful!
I’m trying to use it to do something, but I’m not sure if what I’m trying to do is possible. My set-up is this: I’ve got a custom post type for businesses, and another for events. I want to associate events with businesses, so that when on the page for a business, I can display related events.
So far I’ve followed your ‘basic usage’ and that’s all good, I can pull through the title of the event. However, I have custom fields for my custom post type of events – for example, event location. On my event pages I’m displaying these using (for the example of event location) <?php echo get_post_meta($post->ID, ‘event-location’, true); ?> Is there a way that I can pull this information through and display it on the page for a business along with the event title?
Please let me know if you need any more info to answer my question.
- The topic ‘[Resolved] [Plugin: Posts 2 Posts] Using posts to posts with custom post types’ is closed to new replies.