Pods template: show related pod's fields labels #6822
vesna-droid
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem to Solve
Hello,
It seems it is currently not possible for Pods templates and magic tags to reference fields and labels in related bidirectional Pod?
Something like this:
{@_field.your_rel_field.some_field_on_that_related_object.label}
My example:
I have 2 pods:
– user – extending user public profile
– autor – custom post type
They have relationship bidirectional field relating to each other:
– user pod has relationship field autor
– autor pod has relationship field user
For Pods extending user public profile I am using Pods template.
I successfully display on user public profile value of cv field from related pod autor using
{@autor.cv}
But I cannot get label of this field displayed.
It could be useful not only to be able to reference related pod's fields labels but also any pod's fields labels?
Something like
{@_field.related_pod.field.label} {@_pod.related_pod.field.label}
Proposed Solution
This is after communication on this topic at https://wordpress.org/support/topic/pods-template-show-related-pod-field-label/
Something like this:
{@_field.your_rel_field.some_field_on_that_related_object.label}
Possible Workaround
No response
Examples Elsewhere
No response
Screenshots / Screencast
No response
Beta Was this translation helpful? Give feedback.
All reactions