• Resolved amjadalmousawi

    (@amjadalmousawi)


    hi pods team

    i created 2 pods (games, download )

    first how to link these 2 pods on parent and child

    second how to make button linked dynamic

    ex; i created relation between them ,and on elementor when i set dynamic link into pods url field it dont work not clickable

    i tried a lot deferent method and non of them work

    how to make button linked dynamic?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @amjadalmousawi

    There are several tutorials online on how to work with Elementor and Pods: https://www.youtube.com/results?search_query=pods+elementor

    first how to link these 2 pods on parent and child

    Relationships are not parent-child aware, these are merely relationships. How you use the relationship will define this.

    second how to make button linked dynamic

    This will depend on how the Elementor module works. I would imagine that the URL field within the module can be dynamically populated.

    Cheers, Jory

    Plugin Support pdclark

    (@pdclark)

    Assuming you have created two bi-directional relationship fields, one called downloads on the games post type, and another called games on the downloads post type, you can create a link for the relationships using a shortcode within Elementor:

    Display downloads on the games post type:

    [pods]
        [each downloads]
            <a href="{@permalink}">{@post_title}</a>
        [/each]
    [/pods]

    Display games on the downloads post type:

    [pods]
        [each games]
            <a href="{@permalink}">{@post_title}</a>
        [/each]
    [/pods]

    Using [each] and [/each] allows the relationships to contain multiple items. If either is a single-select relationship, the each statements could be removed, {@permalink} replaced with {@games.permalink} (or game or whatever the field name is), and {@post_title} replaced with {@games.post_title} (or game or whatever the field name is).

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

The topic ‘[NSFW] dynamic button link’ is closed to new replies.