Hide/show blog posts based on customer tag

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!