https://xmlexpr.blogspot.com/2025/10/weekly-blog-design-003.html
https://xmlexpr.blogspot.com/2025/10/partially-hide-blogger-post-labels.html
https://xmlexpr.blogspot.com/2025/10/partially-hide-blogger-post-labels.html?max-results=20
https://xmlexpr.blogspot.com/
user_r100
https://www.blogger.com/profile/09729361485633901245
//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizihHpchmJoGeEVuJGCATZpHw9BgxolQLkV-Mw0hXTuIjdZQ8e_AeFQZdY6r5UrGWerl4b3Qx4aYsVx2w9y474FJvlyZDZiNcCLLNNQly7M3NZ8Xz1g2dsxQh3yuQJln2e6JTJtzci506US-j64gEDelPT-QYo7_TFH1kTp6AapPzrZQ/s220/channels4_profile.jpg
9002669002952467268
https://xmlexpr.blogspot.com/2025/10/filtering-posts-in-blogger-blog-widget.html
Filtering Posts in Blogger Blog Widget
October 11, 2025
2025
October
10
11:57 PM
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.
Appendix
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
https://xmlexpr.blogspot.com/search/label/template-development
template-development
https://xmlexpr.blogspot.com/2025/10/weekly-blog-design-003.html
https://xmlexpr.blogspot.com/2025/10/partially-hide-blogger-post-labels.html
https://xmlexpr.blogspot.com/