Displaying Event Revenue Progress

Use this shortcode to display how much revenue an event has raised against a definable target. This dynamic shortcode pulls totals from Gravity Forms entries and displays a progress bar with optional customization.

What the Shortcode Displays

  • Total amount raised (from Gravity Forms entries)
  • Target amount (from the target revenue field)
  • Percentage of goal reached (including values over 100%)
  • Animated progress bar that changes color when the goal is reached
  • Optional message when the goal is reached

Basic Usage

[gf_event_progress]

Displays the revenue progress for the current post (event).

Using it on Other Pages or Posts

[gf_event_progress post_id=”123″]

Use the post_id attribute to show progress for a specific event.

Customizing the Output

You can customize the display text using the label attribute. Available placeholders:

  • {raised} — The total raised
  • {target} — The fundraising target
  • {percent} — The percentage of the target reached
  • {currency} — The currency symbol (from plugin settings)

Example:

[gf_event_progress label=”Raised {currency}{raised} of {currency}{target} ({percent}%)”]

Changing Progress Bar Colors

You can set the color of the progress bar before and after the goal is reached using the color_before and color_after attributes.

[gf_event_progress color_before=”#999″ color_after=”#28a745″]

Displaying a Goal Reached Message

Use the goal_message attribute to show a message (like Goal Reached!) when the target is reached or exceeded.

[gf_event_progress goal_message=”Goal Reached!”]

Setting the Fundraising Target

  1. Edit the event post.
  2. Add a target to the Revenue Target field.
  3. Update the post to save the target.

Styling Notes

The shortcode includes a progress bar styled with inline CSS. You can override or enhance it in your theme using these class names:

  • .gf-event-progress
  • .gf-event-progress-bar
  • .gf-event-progress-bar-fill
  • .gf-event-goal-message
AgencyForGood

Copyright 2026. All Rights Reserved

Review Your Cart
0
Add Coupon Code
Subtotal