• 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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • dvsmith

    (@dvsmith)

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

    I’m also looking for this

    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.

    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.

    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 –
    https://mydomain.com/news/wp-content/uploads/Events is an invalid directory path, or not in the webserver document root ‘https://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.

    Yeah I had to play with that custom field value.

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

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Looking for simple way to upload/display a list of files’ is closed to new replies.