How To Create A Download Link In Wordpress

  

  1. How To Create A Download Link In Wordpress Free
  2. How To Create A Download Link
  3. How To Create A Download Link In Wordpress Account
  4. How To Create A Link
  5. How To Create A Download Link In Wordpress Free

3 ways to link to previous blog posts in WordPress - [] used this method for the basis of my article, Download my PDF brochure: Simple steps in WordPress, (and in creating Submit a Comment Cancel reply. Woocommerce: Creating a download link to product image. Ask Question 1. Browse other questions tagged php wordpress woocommerce or ask your own question. 3 years, 10 months ago. 3 years, 1 month ago. Upcoming Events. Jump to Using WordPress - If you use WordPress to manage and publish your website, you can use the built-in tools to add a download link to any of your.

Please have a look at my sample product page:http://snshpl.com.sg/product/swa-8003-t/

I'm currently using hooks to hardcode the download button (together with a disclaimer text) to appear right after all my products' meta, this is the code added in my theme's functions.php:

My question is how do I extract the url of the image shown and add it to the link of the download button? I've tried various methods but not sure how to access the link which I know is extracted in the file product-image.php.

Thanks in advance!

Alan LimAlan Lim

1 Answer

If you're on the single product page, you can add the featured image url to your custom button with wp_get_attachment_url( get_post_thumbnail_id() );

In your example:

Anthony ValeraAnthony Valera
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged phpwordpresswoocommerce or ask your own question.

I installed Wordpress on my station and its now being used internally for corporate blogging.I wanted to know if there is a way to create links to servers in our intranet?

For example to access a server resource in windows I use Run->server-namefolderfile.txt

How can I create a link to such file in Excel (or generally in HTML) that will be opened by Firefox & IE when clicked in Wordpress.

Thanks,

Roy

Roy PelegRoy PelegWordpress get page linkLink
6252 gold badges7 silver badges25 bronze badges

2 Answers

You can either map the servers to virtual hosts on the web server and create links like you would to any external file on the internet.Or, if you insist, use

in your example:

windyjonaswindyjonas

After checking this, the right way to mimic a UNC form (at least in my case) was:

which is equal to

It works in Firefox (3.6) and IE (8).

We use Windows XP, all stations are in an Active Directory domain, in case it matters.

Roy PelegHow To Create A Download Link In WordpressRoy Peleg
6252 gold badges7 silver badges25 bronze badges

Not the answer you're looking for? Browse other questions tagged wordpresslocalhostintranet or ask your own question.