# Get Parent/children of a block

**URL:** https://forum.makecode.com/t/get-parent-children-of-a-block/20301
**Category:** Help
**Tags:** extension
**Created:** [May 30, 2023, 5:03pm UTC](https://forum.makecode.com/t/get-parent-children-of-a-block/20301 "2023-05-30T17:03:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![meeeeeeeep1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/meeeeeeeep1/32/7912_2.png) [@meeeeeeeep1](https://forum.makecode.com/u/meeeeeeeep1)
#### Post date: [May 30, 2023, 5:03pm UTC](https://forum.makecode.com/t/get-parent-children-of-a-block/20301/1 "2023-05-30T17:03:15Z")

</div>

Does anyone know how to get the parents/children of blocks? I know this is possible when creating your own pxt editor, but I was wondering if there was any way to do it when creating custom blocks.
