DOCS

Recent Donors

FREE block. Displays a list of recent and highest donors for a fundraising action.

Recent donors example

Why use this

A visible donor list builds social proof and can motivate new visitors to give. Showing the highest donation and recent activity creates a sense of momentum.

What it does

The block queries get_fund_donation posts with status paid or completed, filtered to the current action. Three display modes are available:

  • Mixed (default): highlights the most recent donation and the highest donation first, then lists remaining donors
  • Highest: sorts all donors by amount, highest first
  • All: sorts all donors by date, most recent first

Each row can show an avatar (icon, initials, or Gravatar), the donor’s name, amount, and a time-ago label. Badge labels for “recent” and “highest” are configurable. Anonymous donors use the anonymous text setting.

Known limitation: Time-ago labels (just now, time units) are hardcoded in Dutch and are not translatable via standard WordPress i18n. A code-level change is required to translate them.

The block supports Query Loop context.

How to use it

  1. Add the Recent Donors block to the action page template.
  2. Choose a display mode in the inspector.
  3. Set the maximum number of donors to show.
  4. Configure avatar style, badge text, and color settings.
Recent donors inspector

Settings and options

OptionTypeDefaultDescription
Display modestringmixedmixed, highest, or all
Max donationsnumber5Maximum number of rows to show
Show countbooleantrueShow total donor count in the label
Show labelbooleantrueShow the donor count label
Label textstring{count} personen hebben zojuist gedoneerdLabel text; supports {count} merge tag
Show donationsbooleantrueShow the donor list
Show highest badgebooleantrueHighlight the highest donor with a badge
Highest badge textstringHoogste donatieBadge label for highest donor
Recent badge textstringRecente donatieBadge label for most recent donor
Anonymous textstringAnoniemName shown for anonymous donors
Show time agobooleantrueDisplay relative time next to each donation
Show avatarbooleantrueDisplay an avatar for each donor
Avatar stylestringiconicon (heart SVG), initials, or gravatar
Show titlebooleanfalseShow a custom title above the list
Custom titlestringTitle text
Title font sizenumber20Title font size
Title font weightstring700Title font weight
Title colorstring#1d2327Title color
Count colorstring#8B5CF6Donor count number color
Count font sizenumber18Count number font size
Amount colorstring#1f2937Donation amount color
Badge colorstring#6b7280Badge text color
Name font sizenumber14Donor name font size
Show border bottombooleanfalseDivider line below each row
Border bottom colorstring#e0e0e0Divider color
Border bottom widthnumber1Divider thickness in pixels

What you can and cannot do

  • Default label and badge texts are in Dutch. Replace them with translated strings in the block inspector.
  • Time-ago labels cannot be changed from the editor. They are hardcoded in Dutch at the code level.
  • The block excludes tips from amounts when the Exclude Tips setting is enabled globally.

Troubleshooting

No donors shown: No paid donations exist for this action yet, or the block is on a page that is not an action page.

Labels appear in Dutch: The default attribute values are in Dutch. Override them in the block inspector with your preferred language.