End of Year Sale: 30% off your first year on annual plans. Use code AP5-30-OFF See plans

Add a photo gallery (Photo Gallery block)

Build Your App · AppPresser Docs

Add a photo gallery (Photo Gallery block)

Your app journey: step 4 of 9, Add pages and features. New here? Read Start here: build your app with AppPresser first.

What you'll do: Show a grid of photos in your app with the Photo Gallery block. It can also show TAKE PHOTO and PHOTO LIBRARY buttons so people can add their own photos.

Before you start

  • Install and activate the AppCamera plugin on your WordPress website. The gallery gets its photos through AppCamera.
  • For people to add photos, turn on the Camera feature for your app. People must also be logged in. See Connect your WordPress site and turn on Features.

Add the block

  1. In the left menu, under Customization, click Custom Pages.
  2. Click the name of the page you want to change. To make a new page instead, click Add New Page, type a title, keep Page Builder selected and click Create Page.
  3. Below the last block on the page, click Add Block.
  4. In Search blocks…, type Photo Gallery, then click the block. It is added to the bottom of the page.
  5. Under Media Type, choose Media Library or Post Type. The Media Library is where WordPress keeps your pictures.
  6. If you chose Post Type, fill in Post Type, Taxonomy and Taxonomy Tag. These settings are for advanced users.
  7. Leave Show Add Photo Buttons on to show the add photo buttons, or turn it off to hide them.
  8. Under Photo Author, choose All Photos or My Photos. My Photos shows only the logged-in person's photos.
  9. Under Columns, choose 1 or 2.
  10. If you want, type Categories, with commas between them.
  11. Click Save Changes at the top of the editor.
  12. To see a new page in the App Preview, add it to a menu. See Add a page to your app menu.

The Photo Gallery block on the Media Block Test page, with Media Type set to Post Type, Show Add Photo Buttons on, Photo Author, Columns and Categories, and the gallery loaded in the App Preview with TAKE PHOTO, PHOTO LIBRARY and photo cards

What you see in the app

The TAKE PHOTO and PHOTO LIBRARY buttons show above the photos.

The TAKE PHOTO and PHOTO LIBRARY buttons at the top of the gallery page in the App Preview

At first you see gray boxes. The photos replace them, which can take up to about 20 seconds. This is normal.

Gray placeholder boxes in the App Preview while the gallery photos load

The gallery in the App Preview after loading, showing photos with their titles and dates

Taking or adding a photo works only in the app on a real phone, not in the App Preview.

Tips

Tips

  • To move a block, drag it by its handle (the dots on the left). Click the arrow to fold it closed.
  • To copy a block, click the Duplicate icon.
  • To turn a setting on or off, click the switch itself, not the words next to it.
  • After you save, open the page in the App Preview and check your changes.

Careful: The trash icon removes a block right away. Check before you click.

You're done when the block shows on your page in the App Preview.

Next step

Add a card (Card block)

Was this helpful?

Can’t find it?

Our support team can help with setup, builds and app store questions.