Support » Developing with WordPress » Automatically listing PDF Documents from Google Drive

  • Resolved nuckerr

    (@nuckerr)


    Hello, I am working on a website, where we have a bunch of PDF documents in a Google Drive. I want to list them on a page on my website. So this question is sort of in two parts. If you can answer either (or both!) then that would be greatly appreciated.

    1. I want to automatically download the PDF files from the Google Drive onto the WordPress Site. I was looking at services like IFTTT and Make.com, and using webhooks to listen to Google Drive, and then reupload that onto WordPress. Thats unless it’s easier to display the raw PDF directly from Google.
      Side Note – are there any recommendations on organising the files? As there will be other PDF files that I dont want displayed on here. If I could mark them with a tag, or something that would be nice.
    2. I want to then pull all of these PDF files and display them in a bullet point list, as hyperlinks, with their title, and linking directly the PDF.

    Some potentially useful information: I’m using the Twenty Twenty Four theme, and Block Editor. I’m also on version 6.4.3

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    You could try using one of the existing Google Drive plugins to see if any are suitable for your needs. If you cannot find anything suitable in the WP repository or on the Internet at large, then you’re looking at a custom developed solution.

    Google Drive does have an API that allows remote sites to interact with your Drive’s contents. I’ve not used it myself, but I’m fairly confident it would help you do what you want. The hard part is properly communicating with the API.

    I would advise you not try to maintain a copy of Drive contents in your WP site. Always avoid redundant information, especially if keeping it in sync is important. It’s better to get any data you need dynamically, on the fly when needed, than to maintain redundant data. The API lets you do this.

    You should keep all files that should be accessible in their own Drive folder. You could likely organize accessible and private data through permissions alone, but organizing by folder is much simpler and straight forward.

    Thread Starter nuckerr

    (@nuckerr)

    Thank you. I found this plugin worked very well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.