Using the parents() method of Playa, is it possible to get the name or ID of the field in the parent that holds the relationship?

{exp:playa:parents entry_id="1" channel="my_channel"}
    parent field name or id = {????}


  • Maybe you should edit your question to ask what you're really trying to achieve. You probably don't need to know the field id. Jun 20, 2013 at 12:54
  • Have tried to sum up in one line...
    – Russ Back
    Jun 21, 2013 at 13:56
  • Yeah, but why would you need the field's id or name in the first place? Maybe there is a better way to do what you are trying to achieve. Jun 21, 2013 at 23:16

1 Answer 1


Is the {entry_id} tag what you're looking for?

{exp:playa:parents entry_id="1" channel="my_channel"} {entry_id} {/exp:playa:parents}

Within the context of {exp:playa:parents}, it will refer to the parent's id.


It's entirely not possible to get at the field_id of the parent that holds the relationship with the way EE and Playa are both architected.

  • I think he wants the field id where the relationship was made, not the entry id. Jun 19, 2013 at 3:06
  • @jason-varga is right - it's the name or ID of the field in which the relationship is made. Use case is a parent entry in a Foo channel that has two Playa fields that can contain links to a Bar channel. When displaying my Bar entry I can see that there is a parent Foo entry, but I need to know which Playa field holds that relationship.
    – Russ Back
    Jun 20, 2013 at 6:09

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.