# Help with displaying children pages \[SOLVED\]

**URL:** <https://forum.pinegrow.com/t/help-with-displaying-children-pages-solved/9003>\
**Category:** Pinegrow WP\
**Created:** [July 12, 2024, 10:22pm UTC](https://forum.pinegrow.com/t/help-with-displaying-children-pages-solved/9003 "2024-07-12T22:22:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeteSharp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/petesharp/32/7134_2.png) [@PeteSharp](https://forum.pinegrow.com/u/PeteSharp)\
**Post date:** [July 12, 2024, 10:22pm UTC](https://forum.pinegrow.com/t/help-with-displaying-children-pages-solved/9003/1 "2024-07-12T22:22:35Z")

</div>

Hi, I need some help here… I am relatively new to WP, so still orientating myself.

Anyway, I’m populating an Offcanvas menu with children pages.

I had this working earlier… the Offcanvas menu was showing all the children pages, with feature image, title and links etc.

I’m not sure what I changed but it stopped working suddenly. I’ve attempted to redo the WP actions, on the chance I was missing something simple. obviously I need to somehow define the parent page ID!

And I suspect it’s looking me straight in the face what I need to do here 😂 because what ever I did before worked 😁

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/b/b7ecf57dcf79de02016cf1faf35b765fcb7c748a.jpeg)

---

<div class="post-metadata">

**Author:** ![PeteSharp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/petesharp/32/7134_2.png) [@PeteSharp](https://forum.pinegrow.com/u/PeteSharp)\
**Post date:** [July 18, 2024, 7:24am UTC](https://forum.pinegrow.com/t/help-with-displaying-children-pages-solved/9003/2 "2024-07-18T07:24:54Z")

</div>

Ok, the obvious dawned on me, that this was only working when displaying the parent page. It populates all the sub-pages no problems (which is why I thought it was working, then suddenly stopped, because I was back on the home page.)

So any suggestions about how to make this ‘global’? eg. it will always show the child pages of page ID 14.

Do you have a suggestion here @adamslowe or some direction to achieving this.

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [July 18, 2024, 12:40pm UTC](https://forum.pinegrow.com/t/help-with-displaying-children-pages-solved/9003/3 "2024-07-18T12:40:01Z")

</div>

You are so close! I think you just need to use the [page\_id parameter](https://developer.wordpress.org/reference/classes/wp_query/#post-page-parameters) to force it always look at id=14. I’m not in front of a computer at the moment so I don’t remember where that is in them Pinegrow UI. Worst case scenario is that you might need to use a manually crafted loop query, but I don’t think it’ll come to that.

-Adam

---

<div class="post-metadata">

**Author:** ![PeteSharp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/petesharp/32/7134_2.png) [@PeteSharp](https://forum.pinegrow.com/u/PeteSharp)\
**Post date:** [July 18, 2024, 8:09pm UTC](https://forum.pinegrow.com/t/help-with-displaying-children-pages-solved/9003/4 "2024-07-18T20:09:17Z")

</div>

Unless I am not seeing it, there doesn’t appear to be an option to set the page\_id. Only one to get the current ID.

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [July 18, 2024, 9:08pm UTC](https://forum.pinegrow.com/t/help-with-displaying-children-pages-solved/9003/5 "2024-07-18T21:08:03Z")

</div>

You won’t see it in the Show Posts Smart action, you’ll need to convert it to a regular WP action (which as a lot more flexibility) to get the page\_id parameter.

![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/d/d74002428104195aa7b15795ffb4abd7d4dc2fa7.png)

Then go down to the Post and Page Parameters

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/9/9fe57d8f767009a7ff8e45b21b5a96c8c56c8aaf.png)

---

<div class="post-metadata">

**Author:** ![PeteSharp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/petesharp/32/7134_2.png) [@PeteSharp](https://forum.pinegrow.com/u/PeteSharp)\
**Post date:** [July 18, 2024, 9:15pm UTC](https://forum.pinegrow.com/t/help-with-displaying-children-pages-solved/9003/6 "2024-07-18T21:15:45Z")

</div>

> [@adamslowe](#):
>
> convert it to a regular WP action

Excellent.

I now see page 14 show in the offcanvas. So I need to somehow show just the children.

🤔

 ![CleanShot 2024-07-19 at 09.23.37@2x](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/f/fd1cfff910c20a580ac67518cd2aa821dc176984.png)

---

<div class="post-metadata">

**Author:** ![Rowleted](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@Rowleted](https://forum.pinegrow.com/u/Rowleted)\
**Post date:** [July 25, 2024, 3:57pm UTC](https://forum.pinegrow.com/t/help-with-displaying-children-pages-solved/9003/7 "2024-07-25T15:57:18Z")

</div>

I tried everything but still facing same problem.

---

<div class="post-metadata">

**Author:** ![PeteSharp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/petesharp/32/7134_2.png) [@PeteSharp](https://forum.pinegrow.com/u/PeteSharp)\
**Post date:** [July 26, 2024, 3:22am UTC](https://forum.pinegrow.com/t/help-with-displaying-children-pages-solved/9003/8 "2024-07-26T03:22:37Z")

</div>

Came back to this today. And I have managed to solve it.

Following Adam’s advice here.

> [@adamslowe](#):
>
> convert it to a regular WP action

I have my options set like this, and it now lists all the child pages.

 ![CleanShot 2024-07-26 at 15.23.45@2x](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/f/fe52b6b3886b24571133a7a4a6e8d26b9c264d55.png)

 ![CleanShot 2024-07-26 at 15.23.56@2x](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/2/29c8ee765e327eb333af19840341537b0e9df3d7.jpeg)

 ![CleanShot 2024-07-26 at 15.24.09@2x](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/1/1fec9222aa46fe85c06fdc0b2fdeaa1c1600440c.jpeg)

 ![CleanShot 2024-07-26 at 15.26.14@2x](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/f/fb27d09159a496cb6474b84c086b2604fb66eab2.png)

Thanks to @adamslowe for pointing me in the right direction here. We were so close as you say.

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [July 26, 2024, 8:02am UTC](https://forum.pinegrow.com/t/help-with-displaying-children-pages-solved/9003/9 "2024-07-26T08:02:39Z")

</div>

Awesome, I’m glad it helped you get to the finish line! And thanks for the follow-up.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [August 1, 2024, 9:26am UTC](https://forum.pinegrow.com/t/help-with-displaying-children-pages-solved/9003/10 "2024-08-01T09:26:57Z")

</div>


