hi.
i have a shortcode included with one of my plugins (Participants Database) which points to a vCard depending on which users page you are currently on – \[pdb\_single fields=”vcard”\]
when placed normally in a page, the shortcode is a text hyperlink which (as an example) resolves here: https://mywebsite/wp-content/uploads/da\_2.vcf
clicking the hyperlink automatically downloads the vCard.
now, to make it look nicer, i am trying to attach this shortcode to a button so that when someone clicks the button it downloads the relevant vCard. Unfortunately I cannot get this to work.
no matter what I do, it tries to open the shortcode as a nonsensical URL, and fails. in Elementor I have also tried to use a dynamic tag (shortcode) in the button link field but this does not work either.
please can someone point me in the right direction?
​
edit: added the plugin name.
[ad_2]