• Resolved braed

    (@braed)


    How can i generate the link as a string for use with a HTML button?
    I’m creating my own theme and have my button ready to go, i just need the reference to use in the href tag. Something like get_downlodable_files(); perhaps.
    Am I approaching this incorrectly? Fairly new to PHP.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Richard Webster

    (@rwebster85)

    For security to protect your files this plugin doesn’t use links. It’s all handled on the server. If you want a link you’ll just have to upload your file to an external location like dropbox for example, and use their link.

    I’ll add a shortcode to create a link button next week, in the meantime the WooCommerce shortcode [product id=”your_product_id”] works as a way to add a product to a post, as long as you have the “Allow download on shop / archive pages” plugin option set.

    Thread Starter braed

    (@braed)

    Thanks for the reply – I don’t want to use dropbox for that very reason; users will just share the dropbox download link rather than visit the site which is no good at all.
    I wanted to use my own button style and fetch download statistics to display on the page, just like this: prntscr

    Thanks again for the support. My site will be a music download website, without user login, just a page for each track with some information, an embedded video and a link to a download. I’m thinking wordpress is overkill – i may try to do this myself with Asp Mvc. Have a great day! 🙂

    • This reply was modified 9 years, 2 months ago by braed.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Get download link for href?’ is closed to new replies.