- Step 1: Install DriveHub and Connect Google Drive
- Step 2: Create a Gallery Module
- Step 3: Choose Your Photos (Source Tab)
- Step 4: Choose Which Photos Show (Filter Tab)
- Step 5: Change How It Looks (Advanced Tab)
- Step 6: Pick a Layout Style
- Step 7: Choose Who Can See It (Permissions Tab)
- Step 8: Publish the Gallery
- Benefits of Using DriveHub for Your Photo Gallery
Do you want to show your photos from Google Drive as a clean, good-looking gallery on your website? You can easily do this with DriveHub.
This setup is super useful because your photos stay in Google Drive, so they don’t fill up your WordPress Media Library, and every new photo you add to the folder shows up on your site by itself.
Here is an easy, step-by-step guide to help you set it all up!
Step 1: Install DriveHub and Connect Google Drive #
First, make sure DriveHub is installed and your Google account is connected:
- From your WordPress admin, click on Plugins > Add New.
- Search for DriveHub.
- Click Install and then Activate.
- Follow the setup screen to add your Google account.

Read our step by step setup guide to avoid any confusion.
Step 2: Create a Gallery Module #
The next step is to create a module for your gallery:
- Go to DriveHub > Modules.
- Click on Add module.

- In the Select module type window, click on Gallery under Display files.

- Click on the name at the top of the editor and give your gallery a name, for example Studio Photo Gallery 2026.

New to modules? Our guide on how to create your first DriveHub module walks through the editor in more detail.
Step 3: Choose Your Photos (Source Tab) #
In this step, you pick the Google Drive folder that holds your photos:
- Stay on the Source step (it opens first).
- Scroll down to Your Drive and find your photo folder, for example Team Photos or Wildlife Collection. You can type the name in the search box.
- Hover over the folder and tick the box in its top left corner.
- The green panel on the right now shows (1) Items Selected with your folder.

You can tick more than one folder, or pick single photos one by one. Above the browser you’ll also find a few extra switches:
- All Folders & Files: Lets visitors move through all the folders and files of your linked Google Drive accounts. Leave it off to show only what you tick.
- Use Private Files: Shows each logged-in visitor the photos in their own private folder instead of the ones you tick. This needs DriveHub Pro.
- Use ACF field Files: Takes the files from an ACF field on the page where the gallery is placed.
- Merge Selected Folder Files: Shows the photos from all the folders you ticked together in one gallery. Turn on Include Subfolder Files to add photos from their subfolders too.
Step 4: Choose Which Photos Show (Filter Tab) #
Here, you can decide which files make it into your gallery:
- Click on Filter on the left.
- Show Files: Keep this on. If you turn it off, the gallery has no photos to show.
- Allowed Extensions: Switch Allow all off, then type the file types you want, like
jpg, png, and click Add. Only those types show up in the gallery.

Don’t forget to switch Allow all off! While it is on, the list is dimmed and the hint reads “Turn off Allow all to show only these types.”, because DriveHub then shows every file type except the ones in the Except box. Once Allow all is off, the Except box is dimmed instead, with the hint “Except only applies while Allow all is on.”
- Allowed Names: Works the same way. Switch Allow all off and type the names you want to show. You can use wildcards, for example
beach*shows every photo whose name starts with “beach”. Use Apply to to choose whether the name filter checks Files, Folders or both. - Maximum Item Count: Type the most photos you want to show, for example
24. Folders are not counted. This is the only limit on how many photos the gallery shows. Leave it empty to show all of them.

Tip: Want everything except a few types or names? Keep Allow all on and type them in the Except box, for example zip or private*.
Step 5: Change How It Looks (Advanced Tab) #
Now for the fun part. Here, you set the look of your gallery:
- Click on Advanced on the left.
- Module Container: Set a Width (like
100%or800px) and a Height for the gallery box. Leave them empty to let the gallery size itself.
The gallery settings below it are split into four cards: Layout, Photos and Captions, Lightbox, and Folders and Browsing. Let’s go through them one by one.
Layout #
The Layout card decides how the photos are arranged on each screen size:
- Layout Style: Choose Grid, Masonry or Justified. You can see all three in the next step.
- Tile Shape: Shows only for Grid. Pick the shape of every photo tile: Square, 4:3, 3:2, 16:9, 3:4 or 2:3. Photos are cropped to fill the shape.
- Row Height: Shows only for Justified. Pick Short, Medium, Tall or Extra Tall, or keep Auto to size the rows from the column count.
- Columns: Pick how many photos sit side by side on a computer, from 1 to 6.
- Columns on Tablet: For screens 768 to 1023 px wide. Auto uses up to 4.
- Columns on Mobile: For screens under 768 px wide. Auto uses 2, or 1 on the narrowest phones.
- Image Gap (px): Set the space between photos, for example
10. Type0for photos that touch. - Corners: Choose Square, Rounded or Extra Round tiles. Auto rounds the tiles when there is a gap between them and squares them when there is none.
- Background Colour: Pick the colour behind the photos, the toolbar and the page buttons. On a dark colour, the text turns light by itself. Click on Reset to go back to white.

Photos and Captions #
The Photos and Captions card sets how sharp each photo is and the text shown with it:
- Image Resolution: Choose the size the gallery loads each photo at: Thumbnail (400 px), Medium (800 px), Large (1600 px), Original (the full photo) or Custom. With Custom, type the longest edge in pixels, from
100to2400. Smaller sizes load faster, so Thumbnail or Medium is a good pick for most galleries. - Show Photo Names: Turn this on to show each photo’s name with it.
- Caption Position: Shows when Show Photo Names is on. Below puts the name under each photo. On Hover shows it on the photo when the pointer is over it (always on touch screens). On Photo keeps it on the photo all the time.
- Caption Lines: Choose how many lines of the caption show: 1, 2, 3 or All. The full text always shows in the lightbox.
- Caption Source: Choose what the caption says. File Name uses the photo’s name. Drive Description uses the description you gave the photo in Google Drive.
- Use File Name When No Description: Shows when Caption Source is Drive Description. Keep it on to show the file name for photos without a description, or turn it off to leave their caption empty.

Tip: You add a description to a photo in Google Drive itself, in the photo’s details panel. DriveHub then shows it as the caption when Caption Source is Drive Description.
Lightbox #
The Lightbox card controls the full-size view that opens when someone clicks a photo:
- Enable Lightbox: Keep this on so visitors can click a photo to see it large in a popup. When it is off, the photos are not clickable.
- Thumbnail Strip in Lightbox: Turn this on to show a row of small photos under the large one, so visitors can jump straight to any photo. The strip is hidden on phones.
- Show Caption in Lightbox: Keep this on to show the caption under the large photo in the popup. Turn it off for photos only.

Tip: Want captions only in the popup, not under every photo? Turn Show Photo Names off and keep Show Caption in Lightbox on.
Folders and Browsing #
The Folders and Browsing card handles subfolders and how many photos show at once:
- Folder Style: Choose how subfolders show above the photos. Names shows small name buttons. Cover Tiles shows photo-sized tiles with the first photo inside as the cover.
- Show File Count: Turn this off to hide the “Showing 1 – 12 of 40 files” line above the photos.
- Show Sort Menu: Turn this off to hide the sort button. The photos then always keep the order you set under Sorting. With both of these off, the bar above the photos disappears for a clean look.
- Load All Images: Turn this on to show every photo in the folder at once (up to 500), with no pages. Visitors can then move through the whole album in the popup.
- Images per Page: Type how many photos each page shows, from
1to500. The default is12. This box hides while Load All Images is on. - Fill Complete Rows: Turn this on so every page ends with a full row. For example, with 4 columns and
10per page, the gallery shows12.

Last, the Sorting card decides the order of your photos:
- Sort By: Choose Name, Size, Created Date, Modified Date or Random. Random mixes the photos into a new order.
- Sort Direction: Choose Ascending or Descending. New galleries start with Name and Ascending.
- Enable Initial Files Sorting: Keep this on to show the photos in your chosen order as soon as the gallery loads. Turn it off to show them in the order Google Drive returns them; the sort button on the gallery then reads Sort.

Visitors can still change the order themselves with the sort button at the top right of the gallery.
Step 6: Pick a Layout Style #
Not sure which Layout Style to choose? Here is the same folder of photos in each one.
Grid puts every photo in a neat tile of the same shape (square unless you pick another Tile Shape), in tidy rows. Here it is with Show Photo Names turned on, so each photo has its name under it:

Masonry keeps each photo’s own shape and stacks them in columns, like a photo wall. Tall and wide photos sit side by side without cropping:

Justified keeps each photo’s shape too, but lines them up in rows of the same height that fill the full width, like a photo album:

Tip: Grid looks tidy when your photos have mixed shapes. Masonry and Justified show each photo uncropped, which is great for photographers.
Step 7: Choose Who Can See It (Permissions Tab) #
Here, you can decide who gets to see and save your photos:
- Click on Permissions on the left.
- The Download card controls the download button in the lightbox. Keep it on to let visitors save the photo they are viewing, or switch it off to hide the button. Use Filter Users & Roles to allow downloads only for some users or roles.

- Scroll down to Password Protection if you want to keep the gallery private.
- Turn on Password Protection and type a Password. Visitors then need to enter it before they see your photos.

- Under Visibility, use Display For to show the gallery to Everyone or only to people who are Logged In to your website. Logged-out visitors then see a Login Required screen instead of your photos.

Note: Usage Limits and Display For need DriveHub Pro.
Don’t forget to click the Save changes button at the top right when you are finished! (On a brand-new module this button says Save module.)

Step 8: Publish the Gallery #
Once you’re happy with all the settings, put the gallery on a page:
- Click on Embed at the top right.
- Click on Copy shortcode and paste it into any page or post, or hover over Add to a page to let DriveHub add it for you.
- Publish the page.
The first module guide shows each of these options with pictures. You can also add the gallery with the block editor or the Classic Editor.
Now open your page. Your photos from Google Drive show up as a neat gallery:

When there are more photos than your Images per Page number, visitors can move through them with Previous and Next at the bottom. If you set the Loading Method to Load More or Infinite Scroll in the Performance settings, the next photos are added under the ones already showing instead.
If you picked Cover Tiles for Folder Style, each subfolder shows above the photos as a tile with its first photo as the cover. Click a tile to open that folder:

On a phone, the gallery fits itself to the smaller screen, using your Columns on Mobile choice:

Visitors can click any photo to open that same photo large in the lightbox, then use the arrows (or the arrow keys) to move through the rest. When downloads are allowed, a round download button sits next to the close button at the top right:

With Thumbnail Strip in Lightbox on, a row of small photos sits under the large one. Click any of them to jump straight to that photo:

Benefits of Using DriveHub for Your Photo Gallery #
- Save WordPress storage: Your photos stay in Google Drive, not in your Media Library.
- Always up to date: Add photos to the Drive folder and your gallery shows them.
- Your look, your way: Pick the layout, tile shape, columns for every screen size, corners, image size and order.
- Built-in lightbox: Visitors can view each photo full size without leaving the page.
- Keep it private when you need to: Protect a gallery with a password.
With DriveHub, sharing your Google Drive photos as a beautiful gallery takes just a few minutes.
Related guides: