display blog posts by specific tags
H
Hej Hanni
I’m currently building the homepage for my blog. I’d like to be able to display blog posts by specific tags, instead of only showing all posts in chronological order. That way, I could create different sections or categories on the homepage, where each section only shows posts related to a specific tag.
Anna Nguyen
Hi,
Thank you for taking the time to explain your use case in more detail.
We completely understand your point. Using separate Shopify Blogs as categories does make it difficult to build sections like "All Posts" or "Latest Posts" across multiple blogs, and we can see why filtering articles by tags within a single blog would be a much better approach.
After reviewing this with our team, we'd like to clarify that while Shopify supports article tags and tag-filtered blog pages, it doesn't provide a native way to filter blog posts by tags in Homepage sections. EComposer's Featured Blog element follows Shopify's standard blog querying mechanism, which allows displaying articles from a selected blog but doesn't support filtering those articles by specific tags.
At the moment, we don't have plans to implement a custom tag-filtering layer for the Featured Blog element. We truly appreciate you sharing your workflow and the challenges you've encountered, and we'll keep this request on our wishlist for future consideration.
Thank you again for your thoughtful feedback and for helping us improve EComposer.
Best regards,
EComposer Team
S
Strawberry Dev
I'm seconding this, as separating things out into separate blog "categories", makes shopify treat them as separate blogs entirely, prevents listing posts across multiple different categories in many "blog posts" oriented sections both across ecom builder and other apps theme sections (since this makes paginating posts in liquid code very hard unless limiting it to one category). Having this way of separating out categories to display in one area, basically disables the ability to have any kind of "all blog posts" or "latest posts from any blog" section anywhere in your theme. I had to custom code a solution for this for my own store in several places which was a lot of effort. This feature would make that unnecessary. Hoping to see this in a future update :)
S
Strawberry Dev
Hi Anna, thanks for the followup , I appreciate you guys taking the time to respond to my input on this feature suggestion. It's totally up to your team what they feel is worth adding to the app, I just think this would be a great advantage to have over other apps on the marketplace. If you / your team ever decides it would be a feature worth adding, I just wanted to share my input below on how this could be implemented. Thankfully, Shopify provides easy ways of checking article tags in liquid code as seen in the links to blog and articles objects below, which both support checking through tags present on either to choose what to display. I have actually myself implemented this exact system before for a customization on a separate theme section. All I did was paginate the articles in whatever blog(s) were in the section and check tags on them until I had a certain number of eligible articles via liquid code. Links to the dev docs below which show how to check tags on these liquid objects. Thanks again and have a great day 🙂
Anna Nguyen
Strawberry Dev
Hi,
Thank you for taking the time to share these implementation details and the Shopify documentation.
We understand your approach, and you're absolutely right that Shopify's Liquid objects provide access to article tags within the context of blogs and articles.
However, the mechanism used by the Featured Blog element on the Homepage is different from the Blog and Article templates. While filtering by tags can be achieved through custom Liquid in those contexts, it's not something our Homepage element currently supports out of the box.
We really appreciate you sharing your experience and the implementation idea. Although we don't have plans to add this functionality at the moment, your feedback provides valuable technical context for our product team should we revisit this feature in the future.
Thank you again for your thoughtful suggestions and for helping us improve EComposer.
Best regards,
EComposer Team
Anna Nguyen
Hi,
Thank you for the suggestion.
For this use case, we would actually recommend using separate blog categories (Shopify Blogs) rather than article tags.
EComposer's Featured Blog element allows you to display articles from a specific blog/category, making it easy to create different sections on your homepage such as "News", "Tutorials", "Tips", etc., with each section showing posts from its corresponding category.
At the moment, filtering blog posts by article tags is not supported. However, if you organize your content into separate blog categories, you can achieve a very similar result using multiple Featured Blog elements on the same page.
We hope this workaround helps with your homepage setup. Please let us know if you need any assistance configuring the Featured Blog element.
Best regards,
EComposer Team