Limiting a Multiple Relationship Field to one output
-
Hey,
I don’t even know how to begin because I feel like this could have so many ways to look at it. I will layout the base and then go to my questions. The thing is I have a CPT made with pods called CD with a field called Youtube, for example, to display the link to listen to that CD on Youtube. And I have a CPT made with Pods called Song related to that CD cpt by a, well, CD field. This is a Multiple Selection related field because a Song can be released in multiple CDs through the years.
The problem is, I’m using Pods autotemplate to display the single pages for those Songs and I just want to use 1 of those Youtube links. I know I could use a pods shortcode to “limit=1” and get that field, but I want it inside an “href” markup, like Youtube and I get an error when doing it, it doesn’t work (also the second ” mark after the href stays in red in Pods template, meaning there’s something wrong, right?).
Am I doing something wrong with that href=”[pods]” or that’s really not possible? Is there another way to do something like that?
- The topic ‘Limiting a Multiple Relationship Field to one output’ is closed to new replies.