Hide/show blog posts based on customer tag

Topic summary

B2B merchant wants to show/hide blog content based on customer tags so different customer types see different announcements.

Suggested approach: add Liquid conditionals to the blog template loop to render posts only when the logged-in customer has the required tag (same logic used for tag-based pricing). This relies on customers being authenticated.

Alternative: use a low-cost app (e.g., a Custom Pages plugin at $2/month) to restrict pages by customer tags via the account widget.

Outcome: merchant confirmed all visitors already must log in. They successfully implemented tag-based visibility at the blog level but could not apply it to individual articles; this limitation is acceptable for their needs.

Notes:

  • Liquid = Shopify’s templating language.
  • Customer tags = labels on customer accounts used for segmentation and access control.
    No code or media shared. Status: effectively resolved with a partial, acceptable solution.
Summarized with AI on January 17. AI used: gpt-5.

Hi there,

We have a dedicated B2B website that we use with different types of B2B customers - all works fine currently for showing different pricing and products etc. but we want to start utilising a blog for announcements, but the announcements will vary based on these different types. So ideally we’d like to say “if customer tag = X, show blog post”, then for all others its hidden?

Hello @lana-mukti ,

It’s possible actually logic will remain the same as you did for product pricing you to just change the blog loop accordingly.

Thanks

We had developers setup the pricing – trying to figure this out without additional costs!

Hi there.

I think just as you said, you can include liquid conditionals for customer tags in the code, but that would also imply the customer is logged in.

You can make it easier with the app in my signature for a small cost. There’s a subscription plugin Custom Pages that is $2/month to add pages to the account widget and make them available only to certain customers based on customer tags: https://froonze.tawk.help/article/custom-pages

To even access the website customers need to login so that’s fine. I’ve managed to do it for the blog, but not articles. but that’s fine.

thanks!