# Back end logic issue

**URL:** <https://community.hubspot.com/t/back-end-logic-issue/142118>\
**Category:** CMS Development\
**Created:** [November 5, 2025, 6:37pm UTC](https://community.hubspot.com/t/back-end-logic-issue/142118 "2025-11-05T18:37:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![BC428](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@BC428](https://community.hubspot.com/u/BC428)\
**Post date:** [November 5, 2025, 6:37pm UTC](https://community.hubspot.com/t/back-end-logic-issue/142118/1 "2025-11-05T18:37:02Z")

</div>

Our blogs are having a back end logic issue. Any blogs that have been tagged only once using the correctly associated tag, will not populate when that tag is selected in our category module. It seems that as long as a blog has been tagged at least twice it will populate.  
The other issue is that tags associated with our Client Only Blog are showing up in the Prospect facing blog even though they are two separate blogs. The category module seems to populate from both blogs but we don’t want it to. Can anyone help me address either of these issues?

---

<div class="post-metadata">

**Author:** ![BarryGrennan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/barrygrennan/32/97794_2.png) [@BarryGrennan](https://community.hubspot.com/u/BarryGrennan)\
**Post date:** [November 5, 2025, 6:42pm UTC](https://community.hubspot.com/t/back-end-logic-issue/142118/2 "2025-11-05T18:42:22Z")

</div>

@BC428 can you post the code from your category module. People are likely going to struggle to help you otherwise.

* * *

**Barry Grennan**

[Freelance HubSpot CMS Developer](https://www.seoanseo.ca?utm_source=HubSpotCommunity)

[Website](https://www.seoanseo.ca?utm_source=HubSpotCommunity) | [Contact](https://www.seoanseo.ca/contact?utm_source=HubSpotCommunity) | [LinkedIn](https://www.linkedin.com/in/barrygrennan)

---

<div class="post-metadata">

**Author:** ![BC428](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@BC428](https://community.hubspot.com/u/BC428)\
**Post date:** [November 10, 2025, 6:56pm UTC](https://community.hubspot.com/t/back-end-logic-issue/142118/3 "2025-11-10T18:56:04Z")

</div>

Hello Barry, I wasn’t sure if you saw the last message I posted? Is that code helpful for being able to identify the issue?

---

<div class="post-metadata">

**Author:** ![BC428](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@BC428](https://community.hubspot.com/u/BC428)\
**Post date:** [November 5, 2025, 6:59pm UTC](https://community.hubspot.com/t/back-end-logic-issue/142118/4 "2025-11-05T18:59:39Z")

</div>

This is the code I found in the Prospect facing blog that indicates possibly tags:  
{# \<div class=“growfast-blog\_\_header”\>  
\<div class=“growfast-blog\_\_header\_\_bg”\>  
{% if theme.blog.header\_background.src %}  
\<div class=“growfast-blog\_\_header\_\_bg–image” style=‘background-image: url(“{{ theme.blog.header\_background.src }}”);’\>\</div\>  
{% endif %}  
\</div\>  
\<div class=“growfast-blog\_\_header\_\_content”\>  
\<div class=“growfast-blog\_\_header\_\_content-inner”\>  
\<h1\>{{ group.public\_title }}\</h1\>  
{% set blog\_tags = blog\_tags(group.id, 250) %}  
{% if blog\_tags %}  
\<div class=“growfast-blog\_\_header\_\_content-inner–tags”\>  
{% for tag in blog\_tags %}  
\<a class=“growfast-blog\_\_header\_\_content-inner–tag-link” href=“{{ blog\_tag\_url(group.id, tag.slug) }}” rel=“tag”\>{{ tag.name }}\</a\>  
{% endfor %}  
\</div\>  
{% endif %}  
\</div\>  
\</div\>  
\</div\> #}

And this is the code from the Client Only Blog:  
{# \<div class=“growfast-blog\_\_header”\>  
\<div class=“growfast-blog\_\_header\_\_bg”\>  
{% if theme.blog.header\_background.src %}  
\<div class=“growfast-blog\_\_header\_\_bg–image” style=‘background-image: url(“{{ theme.blog.header\_background.src }}”);’\>\</div\>  
{% endif %}  
\</div\>  
\<div class=“growfast-blog\_\_header\_\_content”\>  
\<div class=“growfast-blog\_\_header\_\_content-inner”\>  
\<h1\>{{ group.public\_title }}\</h1\>  
{% set blog\_tags = blog\_tags(group.id, 250) %}  
{% if blog\_tags %}  
\<div class=“growfast-blog\_\_header\_\_content-inner–tags”\>  
{% for tag in blog\_tags %}  
\<a class=“growfast-blog\_\_header\_\_content-inner–tag-link” href=“{{ blog\_tag\_url(group.id, tag.slug) }}” rel=“tag”\>{{ tag.name }}\</a\>  
{% endfor %}  
\</div\>  
{% endif %}  
\</div\>  
\</div\>  
\</div\> #}

Does this help @BarryGrennan

---

<div class="post-metadata">

**Author:** ![BarryGrennan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/barrygrennan/32/97794_2.png) [@BarryGrennan](https://community.hubspot.com/u/BarryGrennan)\
**Post date:** [November 5, 2025, 7:11pm UTC](https://community.hubspot.com/t/back-end-logic-issue/142118/5 "2025-11-05T19:11:35Z")

</div>

@BC428 that looks to me like it’s just for showing the title of the blog on the list page

`<h1>{{ group.public_title }}</h1>`

That shows the name of the blog in a h1 tag  
and then listing the actual tags associated with that blog

```lia-code-sample
{% set blog_tags = blog_tags(group.id, 250) %}
{% if blog_tags %}
<div class="growfast-blog __header__ content-inner--tags">
{% for tag in blog_tags %}
<a class="growfast-blog __header__ content-inner--tag-link" href="{{ blog_tag_url(group.id, tag.slug) }}" rel="tag">{{ tag.name }}</a>
{% endfor %}
</div>
{% endif %}

```

Those would be a list of the tags, not the posts themselves. And using group.id would mean it only show tags used in the specific blog you’re on.  
If you’re sure that there’s two seperate blogs, make sure that the tags aren’t used in the Prospect facing blog. If you click on the link for the tags that are showing in error, what posts does it show you?

* * *

**Barry Grennan**

[Freelance HubSpot CMS Developer](https://www.seoanseo.ca?utm_source=HubSpotCommunity)

[Website](https://www.seoanseo.ca?utm_source=HubSpotCommunity) | [Contact](https://www.seoanseo.ca/contact?utm_source=HubSpotCommunity) | [LinkedIn](https://www.linkedin.com/in/barrygrennan)

---

<div class="post-metadata">

**Author:** ![BC428](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@BC428](https://community.hubspot.com/u/BC428)\
**Post date:** [November 5, 2025, 8:56pm UTC](https://community.hubspot.com/t/back-end-logic-issue/142118/6 "2025-11-05T20:56:47Z")

</div>

We do have two separate blogs. if I click on the tag link where the error seems to be it does not populate the blog that has been tagged (but only when the tag is used once). If that tag is used at least two times in different blogs then it populates below the category module as it’s supposed to.

I was able to find this though and I think this is possibly where the error is.  
{% set all\_tags = blog\_tags(‘default’) %}  
\<div class=“blog-tags”\>  
{% for tag in all\_tags %}  
{% if tag.name == ‘Private’%}  
{% continue %}  
{% endif %}  
\<a href=“{{ blog\_tag\_url(group.id, tag.slug) }}” class=“blog-tag-link {% if tag.slug in current\_url %} active{% endif %}”\>  
{{ tag.name }}  
\</a\>  
{% endfor %}  
\</div\>

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

This is the Temlate usage snippet too if that’s helpful:  
{% module “module\_17623746101081” path=“/GrowFast\_Free\_Theme\_child/modules/Custom\_Blog\_Posts”, label=“Custom\_Blog\_Posts” %}  
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

And these are the errors that are popping up:

 ![160644iFD50F5D01345979D.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/7/274d617327d4783c009836fa4ae3b078b9020611.png)

We used Insidea as a custom developer and they created the blog page so I’m wondering if they made a mistake so it’s not communicating from the back end to the front end clearly.

I am obviously NOT a developer 😂. So if none of this makes sense just say!

---

<div class="post-metadata">

**Author:** ![BarryGrennan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/barrygrennan/32/97794_2.png) [@BarryGrennan](https://community.hubspot.com/u/BarryGrennan)\
**Post date:** [November 11, 2025, 10:34am UTC](https://community.hubspot.com/t/back-end-logic-issue/142118/7 "2025-11-11T10:34:26Z")

</div>

Hi @BC428,

Apologies for the delay, been dealing with family medical issues the last number of days.

My guess now would be that the issue is within the Custom\_Blog\_Posts module itself if that’s what’s being used to display the posts.

Honestly though, I don’t think posting code snippets that may or may not be related to the issue will get you closer to resolving it.

I’d suggest you either go back to the developer to resolve the issue or hire a new developer to solve it.

* * *

 ![profile2022a.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7273a34ccfe3489fceebc8a36eca751481b59531.jpeg)

**Barry Grennan**

[Freelance HubSpot CMS Developer](https://www.seoanseo.ca?utm_source=HubSpotCommunity)

[Website](https://www.seoanseo.ca?utm_source=HubSpotCommunity) | [Contact](https://www.seoanseo.ca/contact?utm_source=HubSpotCommunity) | [LinkedIn](https://www.linkedin.com/in/barrygrennan)

---

<div class="post-metadata">

**Author:** ![BC428](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@BC428](https://community.hubspot.com/u/BC428)\
**Post date:** [November 11, 2025, 2:42pm UTC](https://community.hubspot.com/t/back-end-logic-issue/142118/8 "2025-11-11T14:42:17Z")

</div>

Hi Barry, thank you so much for getting back to me and I am sorry to hear that your family is dealing with medical issues, that can be scary. I hope everyone is okay! I agree, the code snippets won’t get me closer to resolving the issue and it probably is time to hire a developer. Thank you for pointing me towards the Custom\_Blog\_Posts module, I think this could be correct. Kind regards, Bre

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 12, 2025, 3:41pm UTC](https://community.hubspot.com/t/back-end-logic-issue/142118/9 "2025-11-12T15:41:25Z")

</div>

Thank you for all the help @BarryGrennan 🧡 — Jaycee

---

<div class="post-metadata">

**Author:** ![amjadkhatri](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/amjadkhatri/32/79746_2.png) [@amjadkhatri](https://community.hubspot.com/u/amjadkhatri)\
**Post date:** [November 18, 2025, 6:20am UTC](https://community.hubspot.com/t/back-end-logic-issue/142118/10 "2025-11-18T06:20:51Z")

</div>

Hey @BC428, spotted the likely issue in your earlier post! This line: {% set all\_tags = blog\_tags(‘default’) %} It’s pulling tags from ALL blogs (using ‘default’), not just the current one. Change it to: {% set all\_tags = blog\_tags(group.id) %} This should fix the cross-blog tag issue. For the single-tag problem, share that with your developer—might be a filter or limit in the Custom\_Blog\_Posts module logic causing it.

* * *

**Did my answer help? Please click “Mark as solution” — it helps others and means a lot to me!**

I use my real experience, community knowledge, and expert tools (including AI when needed) to give the most accurate and human responses.

| ![]() | **Muhammad Amjad** Senior Consultant • HubSpot + Web Automation Expert**[Need HubSpot Help? Send Me a DM  
](https://www.upwork.com/freelancers/amjadkhatri)**  
 **![]()[Connect with me On LinkedIn](https://linkedin.com/in/amjadkhatri)   
Specialties:**
- HubSpot CRM Setup & Automation
- Custom Workflows & Email Marketing
- API Integrations & Webhooks
- WordPress + Laravel Development

 |

Available for consulting, troubleshooting & custom HubSpot solutions.
