Looking for some help with Vue and WordPress:
I’m trying to get Vue and PHP to talk with each other and having some trouble. Currently, in the project, we’re creating an anchor for each “resource”
<a v-if="resource.pdf_color"
:href="resource.pdf_color.url"
download
class="btn btn-with-icon icon-file-check"
data-toggle="tooltip"
data-placement="top"
title="Color Download">
<label>Color Download</label>
</a>
However, we would like to use a WP plugin called “Easy Media Download” to limit number of resources downloaded (we’re trying to minimize members signing for one month to download all materials then canceling service).
I’m trying to figure it out how to be able to call the $url resource.pdf_color.url
inside the shortcode do_shortcode( '[easy_media_download url=" $url "]' )
and then bind it to the anchor element inside the href
argument. I’ve tried a few things but haven’t had much luck.
Any suggestions or ideas on how to solve this?