Search for keywords, like "PayPal", "Recurring Donations", and more.

GiveWP Campaign Shortcode

The [givewp_campaign] shortcode allows you to insert a single Campaign anywhere shortcodes are supported on your website. This maximizes the exposure of your key campaigns to visitors and makes it easy to use GiveWP’s Campaigns with any page builder that supports shortcodes.

Example:

[givewp_campaign campaign_id="33" show_image="true" show_description="false" show_goal="true"]

Campaign Shortcode Attributes

These attributes give you control over which Campaign information is shown via the shortcode.

Campaign ID: (Required) Select which campaign the shortcode will display. You can only display one campaign at a time. (The Campaign Grid shortcode displays multiple campaigns.)

  • Shortcode attribute: campaign_id
  • Attribute values: a numeric value of the Campaign ID.
  • Default behavior: None. If this attribute is not included in the shortcode, you will see an error on your page.

Show Image: Choose whether or not to show the Campaign Cover Image.

  • Shortcode attribute: show_image
  • Attribute values: true, false
  • Default behavior: If this attribute isn’t included in the shortcode, the image is shown. If the attribute is included but left empty, the image is not shown.

Show Description: Choose whether or not to show the Campaign Description.

  • Shortcode attribute: show_description
  • Attribute values: true, false
  • Default behavior: If this attribute isn’t included in the shortcode, the description is shown. If the attribute is included but left empty, the description is not shown.

Show Goal: Choose whether or not to show the Campaign Goal.

  • Shortcode attribute: show_goal
  • Attribute values: true, false
  • Default behavior: If this attribute isn’t included in the shortcode, the goal is shown. If the attribute is included but left empty, the goal is not shown.

Last updated 8 months ago

Start Fundraising Better Today!

Get GiveWP Today
GiveWP Plans