Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> dynamic button link
Last modified: December 31, 2022

---

# [NSFW] dynamic button link

 *  Resolved [amjadalmousawi](https://wordpress.org/support/users/amjadalmousawi/)
 * (@amjadalmousawi)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/dynamic-button-link/)
 * 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?
    -  This topic was modified 3 years, 5 months ago by [amjadalmousawi](https://wordpress.org/support/users/amjadalmousawi/).

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

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/dynamic-button-link/#post-16332075)
 * Hi [@amjadalmousawi](https://wordpress.org/support/users/amjadalmousawi/)
 * There are several tutorials online on how to work with Elementor and Pods: [https://www.youtube.com/results?search_query=pods+elementor](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](https://wordpress.org/support/users/pdclark/)
 * (@pdclark)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/dynamic-button-link/#post-16332083)
 * 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](https://elementor.com/help/shortcode-widget/):
 * Display downloads on the games post type:
 *     ```wp-block-code
       [pods]
           [each downloads]
               <a href="{@permalink}">{@post_title}</a>
           [/each]
       [/pods]
       ```
   
 * Display games on the downloads post type:
 *     ```wp-block-code
       [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.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [pdclark](https://wordpress.org/support/users/pdclark/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/dynamic-button-link/#post-16332083)
 * Status: resolved