Third Party Shortcode and POD value
-
Hi,
I am using pods in conjunction with WP WordPress Manager. I have a POD setup with a relationship field that links to a WP Download Manager Post.
I now want to display a download link for the WP download Manager post (I am creating a POD template to do this), which usually I would do this with: echo do_shortcode(“[wpdm_package id=’???’ template=’link-template-button’]”)
The ID of the WP Dwonload Post I can get with magic link {@resource_link_protected.ID}, but I am struggling to use it to display the shortcode
I have tried
echo do_shortcode(“[wpdm_package id='{@resource_link_protected.ID}’ template=’link-template-button’]”)
and
$protected_id = ‘{@resource_link_protected.ID}’;
echo do_shortcode(“[wpdm_package id=’$protected_id’ template=’link-template-button’]”)If I do
$protected_id = ‘1554’;
echo do_shortcode(“[wpdm_package id=’$protected_id’ template=’link-template-button’]”)
Then I get the download link, So I am struggling getting {@resource_link_protected.ID} into a variable or use in a shortcodeAny Ideas?
- The topic ‘Third Party Shortcode and POD value’ is closed to new replies.