# Getting page title inside a block when on parent page

**URL:** <https://forum.getkirby.com/t/getting-page-title-inside-a-block-when-on-parent-page/26832>\
**Category:** Questions\
**Tags:** v3\
**Created:** [October 25, 2022, 2:12pm UTC](https://forum.getkirby.com/t/getting-page-title-inside-a-block-when-on-parent-page/26832 "2022-10-25T14:12:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gareth\_Jones](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/gareth_jones/32/9981_2.png) [@Gareth\_Jones](https://forum.getkirby.com/u/Gareth_Jones)\
**Post date:** [October 25, 2022, 2:12pm UTC](https://forum.getkirby.com/t/getting-page-title-inside-a-block-when-on-parent-page/26832/1 "2022-10-25T14:12:07Z")

</div>

I am displaying children on a parent page, including content inside a block.

I just want to include the page title inside the block:

```auto
        <h4><?= $page->title() ?></h4>

```

But this displays the parents page title - how do I reference the title of the page the block is on?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 25, 2022, 2:23pm UTC](https://forum.getkirby.com/t/getting-page-title-inside-a-block-when-on-parent-page/26832/2 "2022-10-25T14:23:03Z")

</div>

> **[$block-\>parent()](https://getkirby.com/docs/reference/objects/cms/block/parent)**
>
> Returns the parent model

```auto
$block->parent()->title()

```
