Source
You can add and modify your galleries from the Source tab. It also allows you to add and remove additional galleries.
You can choose the source as either static and dynamic (to include ACF fields).
Static
When the source is static, the content does not change or adapt in any way for any user.
Set source as static
Select the
galleryblockOpen the Block Inspector
Navigate to the Primary tab
Open the Source tab
Click
source
Name
Allows you to name your galleries in order to manage them.
Add/Modify
Select the
galleryblockOpen the Block Inspector
Navigate to the Primary tab
Open the Source tab
Add/Modify name for selected gallery
Edit 
Allows you to Edit a gallery where you can add images from your computer or Media Library or drag and drop to reorder them.
Add 
Allows you to create additional galleries.
Add
Select the
galleryblockOpen the Block Inspector
Navigate to the Primary tab
Open the Source tab
Click the
button to add an additional gallery
Remove 
Allows you to remove galleries you have added.
Remove
Select the
galleryblockOpen the Block Inspector
Navigate to the Primary tab
Open the Source tab
Find the desired gallery
Click the
button
Dynamic
The gallery block currently supports the ACF Gallery field for dynamic galleries.
In order to add an ACF field to one or more of your pages, you will need to set up an ACF field.
Set up ACF field
Navigate to the WordPress dashboard
Select Custom Fields
Click on Add Field Group to add a new Field Group or Click Add New
Add a title
Click
Add Field to add a new field
Add a Field Label such as "My Gallery"
Choose Field Type as Gallery in the dropdown
Click "Save Changes" to save
Remember to refresh before and after adding images to your ACF Gallery.
Set source as dynamic
Select the
galleryblockOpen the Block Inspector
Navigate to the Primary tab
Open the Source tab
Click the
Source
ACF
In order to set your dynamic source to ACF, select ACF in the Data panel.
Last updated