• Resolved shimonsays

    (@shimonsays)


    Hi, I LOVE using pods since it gives me lots of space to build sited with Elementor as a no-coder. I have stumbled across simple task which I can’t make to work properly:
    WHAT I’m trying to do:
    POD A – “TIPs” include title of tip, content of tip, information about the tipper (author of this tip)

    POD B – “TIPPERs” – those are the tip authors. for each there are fields of: name (title) + url + job description.

    each Tipper has many tips.
    end user would see “tips from X..” , “tips from y…”

    I use elementor to display the information on CPT “TIP”.

    – PROBLEM – I can’t figure out how to display authors fields in “tips” area.
    the longest I went is to display dropdown on TIPs which consist of titles of TIPPERS. What I want to do is to populate all author information in TIPs CPT, and from there to pull all the info into my elementor template (which pulls fields from TIPs CPT).

    – USAGE –
    site admin should “add new tip” inside it -> choose Tipper(author) with dropdown or create a new author. When the admin chooses the tipper, all of it’s fields should be populated in corresponding TIP CPT.
    Admin will fill out the rest of the fields (“tip content”)

    I couldn’t make it work with the relations field-type. only to get the title of TIPPERs, not the inner added fields

    I am no coder, can I achieve my objective using the UI?

    Thanks!

    • This topic was modified 5 years, 11 months ago by shimonsays.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    Firstly, my apologies for taking so long to reply on this one. Blame the holidays!

    You might be a little confused about how the relationships work. The fields you’re wanting to add ‘tippers’ are attached to that post type and ‘tips’ stores information about the ‘tip’. They are connected through the relationship field; the field doesn’t copy information over — it creates the connection through the field.

    With that field connection you can display the information about the tipper through that relationship field. Unfortunately, Elementor Pro doesn’t support our relationship fields (it only outputs them as text), so to display them without code, you’d need to look at Pods Templates and calling that template with a shortcode in your Elementor layout.

    Make sure when you create your relationship field that select the ‘Add New’ option which will allow your admins to add new tippers from the ‘tip’ screen when they’re selecting a ‘tipper’.

    Take a look at this video; it might help it make more sense:
    https://docs.pods.io/videos/grow-beyond-posts-pages-introduction-pods-framework/

    If you still have questions, especially on getting the content to display in Elementor, feel free to drop into our Slack Chat and I can point you in the right directions https://pods.io/chat/

Viewing 1 replies (of 1 total)
  • The topic ‘Populate Pod with sub-fields of relationshipped pod’ is closed to new replies.