Relationships: Linking Pages from two pods
-
Before I write a novel about how I’m doing it and what’s gong wrong, here’s what I’m trying to do:
Training courses.
pod: courses
pod: registrationthe courses pod list out the courses along with taxonomy and meta. the registration pods are iframe pages to a 3rd party registration system.
So, I want to have a link on the course page to the associated reigistration page. I’ve got the relationship setup, and the fancy dropdown appears on my course page and I’ve selected the correct registration page.
Now, to utilize this in a template field, I see that when I call that key, it’s the numerical value of the pageID for the registration pod page. My attempts at producing an anchor link are failing in “Array” — and digginig in I swear it’s a single value… Can’t I just get the direct URL for that registration pod page itself?
My code:
<a href="index.php?page_id=<?php echo get_post_meta($post->ID, registration, true); ?>">Register</a>
Producing: /?page_id=Array
Thanks in advance! (ps: i’ve looked all over for basic documentation on linking the two pages – or relationships in general)
- The topic ‘Relationships: Linking Pages from two pods’ is closed to new replies.