🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 23, 2026

How to Add Gravity Forms Uploads to a Photo Gallery by 10Web Gallery

GravityExtra
How to Add Gravity Forms Uploads to a Photo Gallery by 10Web Gallery

A photo contest, a community wall, a club gallery, a school event, a family reunion page. They all begin the same way: people send pictures, and someone has to get them into the gallery. If your site uses Photo Gallery by 10Web, that someone usually downloads each picture from an e-mail or a form entry, opens the gallery screen, uploads it again, types an alt text and a description, and repeats this for every picture and every person. This guide shows how to let Gravity Forms do all of it: visitors upload pictures through a form, and the pictures appear in the right Photo Gallery gallery and album, with an alt text, a description and a thumbnail, and an approval step if you want one.

Why form uploads do not reach your galleries

Gravity Forms saves an uploaded file in its own folder inside the WordPress uploads directory and keeps only the address in the entry. Photo Gallery works differently. It has its own tables for galleries, albums and images and its own folder, where every image has a picture, a thumbnail and an untouched original. A file that sits in the Gravity Forms folder is invisible to Photo Gallery, and Photo Gallery has no idea that a form exists. Nothing connects the two, so every picture needs a person to carry it over.

That is fine for ten pictures. It stops being fine at a hundred, and it invites mistakes: a picture goes into the wrong gallery, the alt text is forgotten, a picture that should not be public goes live because nobody had time to look at it.

What you will build

  • A form with a name, a File Upload field, an optional caption and a description of the picture.
  • A list of your Photo Gallery galleries in the form, so the visitor picks where the picture belongs, or a rule that makes a new gallery for every person.
  • A list of albums, so the gallery lands in the right gallery group.
  • An approval step: pictures stay hidden until you press one button.
  • A confirmation that tells the visitor where the picture went, using merge tags.

Step 1: install the plugins

You need Gravity Forms, the free Photo Gallery plugin from WordPress.org, and the Gravity Forms Photo Gallery Integration Premium Add-on. Activate them in that order, then open Forms → Settings → Photo Gallery and enter your license key. If Photo Gallery is not active, the add-on shows a notice and does nothing, so you cannot lose pictures by a wrong order of activation.

Create at least one gallery in Photo Gallery, and one album if you want to use albums. For the rule that makes a new gallery for every entry you do not need any gallery yet.

Step 2: build the form

Create a form with a Single Line Text field called Your name, a File Upload field called Your photo, a Single Line Text field for a short caption, and another one where the visitor describes the picture in a few words. Allow only the file types you want, jpg, png, gif and webp, and set a file size limit. Visitors who send several pictures can use the multiple file uploader. If the visitor should choose the gallery, add a Drop Down field called Gallery, and for albums a second Drop Down field called Album. Leave their choices empty; the add-on fills them.

A Gravity Forms photo contest form with the fields Your name, Your photo, Gallery, Caption, Describe the photo and Album, where the Gallery and Album drop downs list the galleries and albums of Photo Gallery
An ordinary Gravity Forms form. The Gallery and Album lists are filled from Photo Gallery.

Step 3: add the feed

Open the form, then Settings → Photo Gallery → Add New. Name the feed and keep the upload field ticked. Under Which gallery choose how the gallery is found. Fill the boxes under Image details with merge tags: the alt text can be the description the visitor typed, the caption can be the short caption, and the title can be the name of the sender with the file name. Save the feed and send the form once. Open the gallery in Photo Gallery: the picture is there.

The Photo Gallery feed settings: the File Upload fields, the gallery choice, the album choice, the lists for the form fields, the image details with merge tag buttons and the approval setting
The feed settings: which gallery, which album, the image details and the approval.

Step 4: let the visitor choose the gallery

In the feed pick The gallery the visitor picks in a form field, select the Gallery field, and select the same field under List the galleries in this field. The add-on fills the drop down with the names of your galleries, and the value of each choice is the number of the gallery. When the form is sent, the add-on checks the answer against the same list. Someone who edits the form in the browser and sends the number of another gallery is refused, and the entry notes say so. Add a fallback gallery for an empty answer, and an exclude list for galleries that must stay closed to visitors.

If your members have accounts, tick Only galleries and albums made by the logged-in user. Every member then sees only their own galleries in the list, and anonymous visitors see none. That is the quickest way to give each photographer a private place to add to.

Step 5: a new gallery for every person

A contest or a wall often works better when every sender gets a gallery. Choose A new gallery and give it a name made of merge tags, such as Photos by {Your name:1}. A gallery that Photo Gallery shows on its own public page is made, with a description from a second template. If you let entries with the same name share a gallery, a name such as Summer contest {Category:5} gives you one gallery for each category. For members you can keep one gallery per logged-in user, so the next picture of the same person goes into the gallery they already have.

Step 6: albums

Photo Gallery shows galleries inside albums, called gallery groups, which is a good way to arrange a wall by year, by event or by author. In the feed section Which album either pick one album or let the visitor choose it in a drop down. The gallery joins the album the first time and is left alone afterwards, in the next free place. Together with a new gallery per entry, this gives you a growing album of galleries without anyone lifting a finger.

Step 7: hold the pictures for approval

Pictures from strangers should not go live without a look. Set Approval to hold. The pictures are then saved with the Photo Gallery status Unpublished, which means they exist in the gallery screen but nobody sees them on the site. A gallery that the feed made stays a draft, and it joins its album only after approval. Open the entry in Forms → Entries. The box Photo Gallery shows each thumbnail, the gallery and the album, with two buttons.

The Photo Gallery box on a Gravity Forms entry screen: the waiting for approval status, the gallery and album, the thumbnails of the images and the Approve images and Reject images buttons
The entry screen with the images that wait for approval and the two buttons.

Approve images shows the pictures, publishes the gallery, puts it in the album and sets the preview picture of the gallery. Reject images deletes the pictures and all three of their files. Both buttons are protected by a nonce and by the right to edit entries. Use the notification events images approved and images rejected to send the sender a friendly message.

Step 8: what the pictures look like to Photo Gallery

The add-on does the same things that the Photo Gallery file manager does. It saves the picture, cut to the largest size set in the Photo Gallery options, a thumbnail in the thumbnail size, and the untouched original in a hidden folder, all inside the Photo Gallery upload folder. It writes the alt text, the description, the file size, the pixel size and the order to the image table. This means every Photo Gallery view works with these images: thumbnails, masonry, slideshow, image browser, blog style, and the lightbox with its description. You can open the gallery in the Photo Gallery editor, rename an image, change its order or delete it, as with any image you added by hand.

Alt text and descriptions that people can find

Alt text helps people who use a screen reader and helps search engines understand the picture. Photo Gallery keeps one text for the alt and the title of an image, and the add-on fills it from the field where the visitor describes the picture. When the visitor writes nothing, the title template is used, and when that is empty the file name is used, so no image is ever saved without a text. The caption goes to the description of the image, which the lightbox of Photo Gallery shows next to the picture.

Merge tags for confirmations and e-mails

The add-on gives you the tags {pgl_gallery_url}, {pgl_gallery_id}, {pgl_gallery_name}, {pgl_album_id}, {pgl_image_count} and {pgl_status}. A confirmation can say that three pictures were saved in the gallery Photos by Maya. A notification to your team can carry the gallery name in the subject line. When approval is on, the link of the gallery stays empty until the pictures are approved, so a visitor is never sent to an empty page.

Things worth knowing before you launch

  • Each picture exists several times on the server: the copy Gravity Forms keeps for the entry, the gallery picture, the thumbnail and the original. Plan your disk space and set a file size limit on every upload field.
  • The pictures in the Photo Gallery folder have public addresses, also while they wait for approval. Do not collect confidential pictures this way.
  • Only jpg, png, gif and webp pictures are used, and a text file renamed to jpg is refused.
  • Galleries that Photo Gallery builds from another source are never listed and never changed.
  • Deleting an entry does not delete the pictures or the galleries. That is on purpose: the gallery may already be on a page.

Frequently asked questions

Can visitors send several pictures in one go?

Yes. Use the multiple file uploader of the File Upload field. The feed adds each picture and sets a limit per entry, from 1 to 50.

Do visitors need an account?

No. Anyone who can see the form can send pictures. Galleries and albums are made by the add-on on the server, not by the visitor.

Do the pictures show in the Media Library?

No. They are saved in the Photo Gallery folder and tables, as the Photo Gallery file manager does, so your Media Library stays as it was.

Is any data sent to another service?

No. Everything happens on your own server between Gravity Forms, WordPress and Photo Gallery.

What if I use the premium version of Photo Gallery?

The add-on uses the folders and tables of the free plugin, which the premium version is built on. It was tested with the free plugin.

Get started

The Gravity Forms Photo Gallery Integration Premium Add-on turns every Gravity Forms picture into a Photo Gallery image in the gallery and album you want, with the checks a public form needs. See the features, the price and the setup guide on the add-on page.

See the Photo Gallery Integration add-on

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr