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

GiveWP Campaign Grid Shortcode

The [givewp_campaign_grid] shortcode allows you to insert a grid displaying multiple Campaigns 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_grid layout="full" show_image="true" show_description="false" sort_by="date" order_by="asc" per_page="9" show_pagination="true"]

Campaign Grid Shortcode Attributes

These attributes give you control over your grid layout, the order in which Campaigns are displayed, and which Campaign information is shown via the shortcode.

Layout: Decide how many columns your grid should use.

  • Shortcode attribute: layout
  • Attribute values: full, double, triple
  • 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 Images.

  • 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 Descriptions.

  • 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 Goals.

  • 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.

Sort By: Sort Campaigns by number of donors, amount raised, or date the campaign was created.

  • Shortcode attribute: sort_by
  • Attribute values: donors, amount, date

Order By: Decide whether the sorted campaigns will be shown in ascending or descending order. For example, if you sort by amount and order by descending, you will show the campaign that has raised the most money first.

  • Shortcode attribute: order_by
  • Attribute values: asc, desc

Per Page: Determine how many Campaigns will be shown on each page of the grid.

  • Shortcode attribute: per_page
  • Attribute values: single numerical value
  • Default behavior: Shows 6 campaigns per page

Show Pagination: Decide whether or not visitors can see additional pages of your Campaign Grid. If you do not show pagination, visitors will only see as many campaigns as you selected for the per_page attribute.

  • Shortcode attribute: show_pagination
  • Attribute values: true, false
  • Default behavior: Pagination is shown by default.
Last updated 8 months ago

Start Fundraising Better Today!

Get GiveWP Today
GiveWP Plans