WordPress.org

Ready to get started?Download WordPress

Forums

Delightful Downloads
external download links (2 posts)

  1. strangen
    Member
    Posted 10 months ago #

    I have recently installed wordpress on a new site and I have dd installed on another site. I imported the downloads to my new site and all my posts containing the download links. Everything seemed to be working properly but when I click the download button on the new site, it says wordpress error, file doesn't exist.

    I checked the downloads and the download url points to the old site, which is how I want it. Any help would be appreciated.

    http://wordpress.org/plugins/delightful-downloads/

  2. strangen
    Member
    Posted 10 months ago #

    I found a temporary solution, I replaced the following code in functions.php

    function dedo_download_link( $id ) {
    	 return home_url( '?ddownload=' . $id );

    to

    function dedo_download_link( $id ) {
    	 return ( 'http://myoldsite.com?ddownload=' . $id );

    This works, but I would like to be able to have a mixture of internal downloads and external downloads in the future.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.