• Resolved NaturalEnquirer

    (@naturalenquirer)


    I have created plants pod. Its FAMILY field has relationship to families pod (family’s common name and synonym). I created this auto template for plants:

    {@genus_species}
    {@family.family_common_name}
    {@family.synonyms}
    {@native}
    {@endemic}
    <img src="{@more_images._src.thumbnail}">

    Families template:

    {@family_common_name} family
    {@synonyms}

    In Elementor, I can display everything except the family’s common name.

    > I’ve tried PODS field which does show family key with common name and synonym. No joy as nothing is shown.
    > I’ve tried PODS single item widget selecting plants pod, current post, families auto template. Wasn’t sure about slug but have tried multiple all with same result.

    So I’m really really new to PODS (and Elementor) so hope I am making obvious mistake or that there is a workaround for this? Thanks so much for any help as I am totally stuck now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    What is ‘family’ in this situation? Is it a taxonomy or another post type?

    Thread Starter NaturalEnquirer

    (@naturalenquirer)

    Not a taxonomy. Family is a post type.

    Plugin Contributor Jim True

    (@jimtrue)

    If the relationship field is family to the family post-type (bad naming, btw; I would never suggest naming the relationship field the same as the post-type. Probably should do related_family or something of that nature), I see nothing wrong with your auto-template. That’s the appropriate way to reference a connected relationship.

    So it has to be with how you’re calling it. Elementor doesn’t have a single post template, so it can’t use Auto Template as far as I know. The Pods Single Items Widget would work with plants and Use Current Post Checked. Nothing else needs to be selected but your Template.

    On the layout for the Plants Single Post, you should be able to call [pods template=”Plants Single Detail Template”] (or whatever you named that template).

    Check your spelling of fields, etc.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display related field in Elementor’ is closed to new replies.