# How to reference/create parent block's dynamic ID G-Blocks

**URL:** https://forum.pinegrow.com/t/how-to-reference-create-parent-blocks-dynamic-id-g-blocks/6104
**Category:** WordPress
**Tags:** gutenberg
**Created:** [December 28, 2021, 9:36pm UTC](https://forum.pinegrow.com/t/how-to-reference-create-parent-blocks-dynamic-id-g-blocks/6104 "2021-12-28T21:36:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jonroc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/jonroc/32/2805_2.png) [@jonroc](https://forum.pinegrow.com/u/jonroc)
#### Post date: [December 28, 2021, 9:36pm UTC](https://forum.pinegrow.com/t/how-to-reference-create-parent-blocks-dynamic-id-g-blocks/6104/1 "2021-12-28T21:36:09Z")

</div>

I’d like to create a BS [accordion block](https://docs.google.com/document/d/1z8HNglN6OebRvpMT2FL1ZrllK-hkPiYdfuvmUpIxC64/edit). The inner blocks would require a reference to the outermost parent wrapper and also to the ID within it’s own sibling div. The outermost parent wrapper would have to have a unique ID in case multiple accordions are one page. I know how to construct the HTML and create the inner blocks to populate. Does anyone know how I can assign/get a dynam ID placed on the parent block? I’ve done this before with posts using their unique slug or ID but is there anything like that for G-blocks? -Thanks 😀
