WordPress.org

Ready to get started?Download WordPress

Forums

Looking for simple way to upload/display a list of files (8 posts)

  1. sighteater
    Member
    Posted 7 years ago #

    I've been looking for a simple way to dynamically display a list of files that were uploaded by the administrator.

    My client has an immediate need for the ability to upload PDFs and have them displayed in a list on his wordpress homepage. Is there a plugin that manages/displays some separate file uploads - or is there any conditional codex that will allow me to display a list of all files from the upload folder with the file type of PDF?

    This one's bugging the crap out of me. I don't want to have to rely on something completely outside wordpress to do this.

  2. dvsmith
    Member
    Posted 7 years ago #

    I'm looking for a solution to the same need. Did you have any luck?

  3. JMershon
    Member
    Posted 7 years ago #

    I'm also looking for this

  4. JMershon
    Member
    Posted 7 years ago #

    Well, I found what appears to be a solution - but I can't figure out how to make it work and the author has disabled the contact form and removed his email address.

    WDN-Directory-List

    If someone can make it work, please post it here.

  5. MichaelH
    Member
    Posted 7 years ago #

    I was able to get it to work.

    1. Installed plugin (see Managing_Plugins)
    2. Created Page template (see Page Tempates) and used the example code from plugin's website.
    3. Created a Page, used the template created in Step 2 (see Pages)
    4. In the page in Step 3 used Custom Field WDN_Directory with value of /wpblog (my test wordpress is installed in my webroot/wpblog folder)

    So when I clicked on the page link from the blog main page I got a directory listing -- in this case since it was just the wordpress directory only license.txt displayed, as all other files are php and html files in that folder. I didn't test it with .pdf files.

    Pretty much just followed the instructions from the plugin page you pointed to.

  6. JMershon
    Member
    Posted 7 years ago #

    I thought I did follow directions. HOWEVER I tried it again following your step by step above. I came up with a different result, so I apparently missed something the first time around.

    I still apparently have things to learn, but at least it is trying to be a directory now :)

    Now I just have to resolve this error -
    http://mydomain.com/news/wp-content/uploads/Events is an invalid directory path, or not in the webserver document root 'http://mydomain.com/'. The path specified in WDN_Directory must be an absolute path below the document root, such as '/library/docfiles/'.

    Thanks for the help Michael. When I started this project I had never heard of WP, php or the like. I am learning a tremendous amount, thanks to you and the other kind folks in the WP community.

  7. MichaelH
    Member
    Posted 7 years ago #

    Yeah I had to play with that custom field value.

    Did you try:
    /news/wp-content/uploads/Events

  8. JMershon
    Member
    Posted 7 years ago #

    If you were here I'd buy you a cup (coffee, beer, whatever)!!!

    It works!! Thank you so much for helping me learn just one more thing.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.