# Display multiple media gallery fields of one member

**URL:** <https://forum.wixstudio.com/t/display-multiple-media-gallery-fields-of-one-member/32992>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [October 2, 2020, 11:59pm UTC](https://forum.wixstudio.com/t/display-multiple-media-gallery-fields-of-one-member/32992 "2020-10-02T23:59:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ocphotog](https://avatars.discourse-cdn.com/v4/letter/o/48db29/32.png) [@ocphotog](https://forum.wixstudio.com/u/ocphotog)\
**Post date:** [October 2, 2020, 11:59pm UTC](https://forum.wixstudio.com/t/display-multiple-media-gallery-fields-of-one-member/32992/1 "2020-10-02T23:59:42Z")

</div>

Hi, I have a database called ppocc\_gallery (dataset1Gallery) that is connected to ppocc\_members (dynamicDatasetMembers). Each time I have a member add images to the media gallery field, when it is displayed only the last entry of images they made is displayed. Is there some corvid coding I can add so that all the images in all the media gallery fields that they have created is displayed? Thanks in advance!

Here is the code I am using to display the gallery:

import wixData from ‘wix-data’;

$w.onReady(() =\> {

$w(‘#dynamicDatasetMembers’).onReady(() =\> {

var studioNameId = $w(“#dynamicDatasetMembers”).getCurrentItem().\_id;

$w(‘#dataset1Gallery’).setFilter(

wixData.filter()

.eq(‘studioNameId’, studioNameId));

});

});

Here is a photo of the ppocc\_gallery showing the multiple records of the same member and the images in each mediagallery field

 ![](https://us1.discourse-cdn.com/wix/original/3X/f/5/f59c688b764a0178baa0bea279d27db62628f2f6.jpeg)

---

<div class="post-metadata">

**Author:** ![ocphotog](https://avatars.discourse-cdn.com/v4/letter/o/48db29/32.png) [@ocphotog](https://forum.wixstudio.com/u/ocphotog)\
**Post date:** [October 5, 2020, 1:10pm UTC](https://forum.wixstudio.com/t/display-multiple-media-gallery-fields-of-one-member/32992/2 "2020-10-05T13:10:07Z")

</div>

Help!! Anyone?
