# Show Customized CTA on Specific Blog Post

**URL:** <https://community.hubspot.com/t/show-customized-cta-on-specific-blog-post/11380>\
**Category:** APIs & Integrations\
**Created:** [October 31, 2018, 7:32am UTC](https://community.hubspot.com/t/show-customized-cta-on-specific-blog-post/11380 "2018-10-31T07:32:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marjmartinez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/marjmartinez/32/89259_2.png) [@marjmartinez](https://community.hubspot.com/u/marjmartinez)\
**Post date:** [October 31, 2018, 7:32am UTC](https://community.hubspot.com/t/show-customized-cta-on-specific-blog-post/11380/1 "2018-10-31T07:32:46Z")

</div>

Hi Guys,

I’m new on the Hubspot Technology and I have this task, I need to show the customize CTA that I made on the specific blog post. But I’m having a problem doing it. I tried to use the Hubtl Tags but It’s not working maybe because I’m using it wrong,

You can see the attached image I made. I hope you guys can help me.

[

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/b/1bbb3b768343e648ed1e4b60004ebaf8647b4101.png)

screenshot-app.hubspot.com-2018.10.31-15-31-09.png858x283 82.9 KB

]([https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/6/6e3c3a17077c1ec67a0e5525a18edab4db885898.png](https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/6/6e3c3a17077c1ec67a0e5525a18edab4db885898.png))

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [October 31, 2018, 4:54pm UTC](https://community.hubspot.com/t/show-customized-cta-on-specific-blog-post/11380/2 "2018-10-31T16:54:32Z")

</div>

Hi [@Marj\_Martinez](https://community.hubspot.com/u/marj_martinez), one thing I’d highly recommend checking out is the [Developer Info](https://designers.hubspot.com/docs/hubl/how-to-use-developer-info-on-cos-pages) you can access on any HubSpot hosted page whose portal you’re a user in. Just click on the Sprocket icon in the top right corner of any page and go to “Developer Info”. This will show you a JSON representation of the page, and you can use the objects you find in the dev info to create conditional logic or print out certain values.

In your case, you may want to try using `content.slug` to show the CTA only on that one blog post. It would be something like:

```auto
{% if content.slug = "9-unique-event-spaces-in-singapore" %}

// do something

{% endif %}

```

---

<div class="post-metadata">

**Author:** ![marjmartinez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/marjmartinez/32/89259_2.png) [@marjmartinez](https://community.hubspot.com/u/marjmartinez)\
**Post date:** [November 5, 2018, 7:24am UTC](https://community.hubspot.com/t/show-customized-cta-on-specific-blog-post/11380/3 "2018-11-05T07:24:26Z")

</div>

Connor\_Barley:

> content.slug

Hi Connor,

Thanks for reply and suggestion. but I tried it and it’s throwing some error on my end _see the image attached_ I hope you can help me.

The error says:

Error:Syntax error in " content.slug = "9-unique-event-spaces-in-singapore" "

warning3.

Error: `10:0` `TemplateSyntaxException: Expected IDENTIFIER, found . slug`

[

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/9/b9cdb55e03657493c1ae2ae4d60fa589a8cbdfdc.png)

hubl.PNG945x340 34.7 KB

]([https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/f/f7bf2afd901107e6c7752f86a933b0a51c7f14f4.png](https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/f/f7bf2afd901107e6c7752f86a933b0a51c7f14f4.png))

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [November 5, 2018, 3:37pm UTC](https://community.hubspot.com/t/show-customized-cta-on-specific-blog-post/11380/4 "2018-11-05T15:37:30Z")

</div>

Whoops! That’s my fault [@Marj\_Martinez](https://community.hubspot.com/u/marj_martinez) - I assumed you were within the blog contents object already. Heeding my own advice, I took a look at the developer info and found you do not need to specify the content object. Here’s what your if statement should look like:

`{% if slug == "9-unique-event-spaces-in-singapore" %}`

Everything else should stay the same.

---

<div class="post-metadata">

**Author:** ![melindagreen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/melindagreen/32/73804_2.png) [@melindagreen](https://community.hubspot.com/u/melindagreen)\
**Post date:** [October 24, 2024, 3:19pm UTC](https://community.hubspot.com/t/show-customized-cta-on-specific-blog-post/11380/5 "2024-10-24T15:19:38Z")

</div>

I know this is an old post, but in case someone finds it, looking for help with the error "Expected IDENTIFIER, found . " -- it’s likely because the HubL code is wrongly attempting to assign, not evaluate.

Line in red above should be {% if content.slug == '9-…
