Skip to main content

How do I filter out certain supporters from the recent supporters liquid tag?

According to the Liquid Template Examples page, it's possible to display recent supporters to my nation using the following snippet:

{% for signup in site.recent_supporters_with_pictures %}
{{ signup.profile_image }}
{% endfor %}

This displays all recent supporters, but I want to exclude certain supporters from appearing in this list. Is that possible?

Official response from

Yes, it's possible to filter our certain supporters using signup tags.

For example, this modified snippet will exclude supporters with the tag "excludetag":

{% for signup in site.recent_supporters_with_pictures %}
{% unless signup.tags contains "excludetag" %}
{{ signup.profile_image }}
{% endunless %}
{% endfor %}

Share this post

Showing 4 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.