Here's how to filter posts by label names in Blogger template code for the Blog widget.
First, define a set of label names as a variable. For example, if you want to filter posts with labels exactly "blogging" and "tutorial", then it should looks like this:
<b:with var='labelNames' value='[ "blogging", "tutorial" ]'>
<!-- ... -->
</b:with>Next, create a filtered posts data using the following lambda expressions. This expressions evaluates to true if a post has both "blogging" and "tutorial" labels, and false if only one of each is present.
<b:with var='labelNames' value='[ "blogging", "tutorial" ]'>
<b:with var='filteredPosts' value='data:posts where (post =>
post.labels count (label => label.name in labelNames) == labelNames.length
)'>
<!-- ... -->
</b:with>
</b:with>Finally, use the filteredPosts variable to display the filtered posts data.
More about Lambda Expressions:
https://www.blogger.com/rpc_relay.html https://www.blogger.com/comment/frame/220561901913020919?po=9002669002952467268&hl=en&saa=85391&origin=https://xmlexpr.blogspot.com&skin=contempo https://xmlexpr.blogspot.com/2025/10/filtering-posts-in-blogger-blog-widget.html#comments true ["template-development"]