Add a photo gallery (Photo Gallery block)
Build Your App · Документация AppPresser
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
- In the left menu, under Customization, click Custom Pages.
- 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.
- Below the last block on the page, click Add Block.
- In Search blocks…, type Photo Gallery, then click the block. It is added to the bottom of the page.
- Under Media Type, choose Media Library or Post Type. The Media Library is where WordPress keeps your pictures.
- If you chose Post Type, fill in Post Type, Taxonomy and Taxonomy Tag. These settings are for advanced users.
- Leave Show Add Photo Buttons on to show the add photo buttons, or turn it off to hide them.
- Under Photo Author, choose All Photos or My Photos. My Photos shows only the logged-in person's photos.
- Under Columns, choose 1 or 2.
- If you want, type Categories, with commas between them.
- Click Save Changes at the top of the editor.
- To see a new page in the App Preview, add it to a menu. See Add a page to your app menu.
What you see in the app
The TAKE PHOTO and PHOTO LIBRARY buttons show above the photos.
At first you see gray boxes. The photos replace them, which can take up to about 20 seconds. This is normal.
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
Related articles
Это было полезно?
Результаты обновляются по мере ввода. Нажмите «/», чтобы перейти к поиску.
Не нашли ответ?
Наша служба поддержки поможет с настройкой, сборками и вопросами о магазинах приложений.




