# I can't use the variable inside the #get

**URL:** <https://forum.ghost.org/t/i-cant-use-the-variable-inside-the-get/38315>\
**Category:** Developer help\
**Created:** [May 8, 2023, 7:25am UTC](https://forum.ghost.org/t/i-cant-use-the-variable-inside-the-get/38315 "2023-05-08T07:25:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashish\_Nakrani](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ashish_nakrani/32/24316_2.png) [@Ashish\_Nakrani](https://forum.ghost.org/u/Ashish_Nakrani)\
**Post date:** [May 8, 2023, 7:25am UTC](https://forum.ghost.org/t/i-cant-use-the-variable-inside-the-get/38315/1 "2023-05-08T07:25:57Z")

</div>

This is the plain ghost theme I’m using on ghost-cli.

Issue: I can’t use slug coming from the parent inside the #get.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/7/3/738ac0452e32d87f8121fd68e143c82732bb941b.png)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [May 8, 2023, 10:57am UTC](https://forum.ghost.org/t/i-cant-use-the-variable-inside-the-get/38315/2 "2023-05-08T10:57:02Z")

</div>

…/slug may work there. Or tag.slug, depending on what came before. Another option is to pass it into a partial with a different name, so that the #get doesn’t override it — filters are picky about format, so I often use the partial approach. So in your second image pass it in as originalslug={{slug}}, then refer to it that way.

---

<div class="post-metadata">

**Author:** ![Ashish\_Nakrani](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ashish_nakrani/32/24316_2.png) [@Ashish\_Nakrani](https://forum.ghost.org/u/Ashish_Nakrani)\
**Post date:** [May 9, 2023, 6:03am UTC](https://forum.ghost.org/t/i-cant-use-the-variable-inside-the-get/38315/3 "2023-05-09T06:03:09Z")

</div>

Hi @Cathy_Sarisky , Thanks

I’ve tried both of your solutions, But not luck.  
Still I’m not getting that slug inside the #get.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/7/d/7d8a10e19cf830ed29cc4270081e7a91ae4fd8ee.png)

---

<div class="post-metadata">

**Author:** ![RyanF](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ryanf/32/17448_2.png) [@RyanF](https://forum.ghost.org/u/RyanF)\
**Post date:** [May 9, 2023, 1:45pm UTC](https://forum.ghost.org/t/i-cant-use-the-variable-inside-the-get/38315/4 "2023-05-09T13:45:41Z")

</div>

Given the complexity of your template, logging can be really helpful.

> **[How to debug your Ghost theme with the log helper](https://ghost.org/tutorials/debug/)**
>
> Boost your bug-squashing ability, amplify your creative possibilities, and unlock a whole new perspective for custom theme development by learning how to use Ghost's log helper

This will allow you to see which data is available and whether it’s being passed properly. (Every time you run a new `get` helper, you change contexts.)
