Hiding empty sections in a database gallery

Hi,

if you are going down this route, you can iterate over the array of items before setting them into $w(" #gallery ").items and remove the empty ones, regardless of what title it is.
again i’d recommend you check out the multi ref capability, the code above will be complex to scale in case you have dozens of images :wink:

good luck!
shlomi