• Resolved chsan77

    (@chsantiago77andres)


    Hi, I’m creating a sports statistics website where athletes fill out their personal information, their debut, their physical characteristics, among other things. I created a pod called athlete profile so the user can fill out the data and add the respective template. Additionally, I connected the registration form to the athlete profile pod. Then, the user registers and chooses the appropriate profile (I have athlete, coach, club, etc.). Their respective pod is automatically created.
    Now, what I’m trying to do is place the pod in each registered user’s profile and fill in the data. But I haven’t been able to do it using a shortcode. I don’t know if this is possible or not. I placed the template shortcode and it executed correctly, but the athlete profile pod didn’t execute.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support pdclark

    (@pdclark)

    It seems like there may be some confusion about how each data structure connects to entries and the database and forms in the user interface.

    When a Pod is a Post Type, entries get stored in the wp_posts and wp_postmeta tables.

    When a Pod extends Users, entries get stored in the wp_users and wp_usermeta tables.

    So a Pod is the newly defined or modified data structure, Post Type, Taxonomy, Media, or Users, while each entry in the Pods is one item of that type: a Post, a User, a Term, an Attachment.

    If an Athlete has a user account, but their Athlete Profile is a Post Type, then the two data types can be related with a relationship field, but display of forms or content together becomes more complex:

    If every athlete corresponds to one WP User account, a simpler data structure may be to add the Athlete Profile fields to an extended User Pod. In that case:

    • Both User Profile an Athletic Profile will always be available together.
    • Fields can be shown/hidden based on a selection of Athlete type using Conditional Logic options on the field.
    • Frontend forms displayed with the Pods shortcode or block can be displayed by separating the desired fields with commas when displaying the form.
    Thread Starter chsan77

    (@chsantiago77andres)

    Thank you, I’ll check it and I’ll write again if I have any further questions.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.