Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

One of my clients has a number of documents in PDF format that he wishes to provide download links to on his site.

One solution I have been toying with is to treat them similar to images and upload them through the media uploader provided with WP and then provide a named link to the file.

I would like to know if the above method is a good way or is there a better way to do this. Moreover, from a maintainability point of view dumping PDF files with images is not exactly the best way to manage these files so it would be good to partition these files into a separate directory.

I am also interested to know if there are any plugins available to do this.

Thanks in advance.

nav

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

the method you have described is valid , and technically you can use it without a problem. Other options you have are : 1.Upload via FTP to a "PDF" folder (or whatever name) and MANUALLY link the files.

  1. Change the default "upload" folder only for the time you upload the pdf files (this method is not reccomanded and will work only on a more "static" site where pdf´s are uploaded only once or twice in bulk)

  2. as for plugin - there is this one http://wordpress.org/extend/plugins/wp-easy-uploader/screenshots/ which is a bit old but might help you. (I did not verify if works on current release)

  3. write a custom function that will either A: change the upload dir ONLY for PDF (easy to write) or B: Let you choose plugin folder for EACH upload.

Right now I am a bit pressed with time, but if you are interested in option 4 let me know .

share|improve this answer
    
Thank you for your reply. It has been most helpful. I think I will have a go at option 3 writing a custom function. Do you mean option 3 not option 4 in your last line? –  navanitachora Feb 15 '12 at 11:37
    
yes, Option 3 .-) sorry.. –  user13279 Feb 16 '12 at 3:08
add comment

I am using a plugin called download manager. It creates a shortcode for each of the the files you upload, provides a download count and attaches icons to the link so that you see a pdf icon for example, against a file name.

Check out: Wordpress Plugin Site - Download Manager

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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