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

GiveWP Campaign Comments Shortcode

The [givewp_campaign_comments] shortcode allows you to display donor comments for a 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_comments block_id="" campaign_id="5" title="Supporter Comments" show_anonymous="true" show_avatar="true" show_date="true" show_name="true" comment_length="200" read_more_text="Read more" comments_per_page="3"]

Campaign Comments Shortcode Attributes

These attributes give you control over which Campaign the comments are from, what donor attributes are shown, how long the comments are, and more.

Campaign ID: (Required) Select which campaign the shortcode will display comments from. You can only display comments from one campaign at a time.

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

Title: Create a custom title for the comments list displayed by the shortcode.

  • Shortcode attribute: title
  • Attribute values: your custom text
  • Default behavior: If you don’t supply a title, the title will be “Supporter Comments.”

Show Anonymous: Choose whether or not to show comments from donors who gave anonymously. If you do, the donor’s name will be displayed as “Anonymous.”

  • Shortcode attribute: show_anonymous
  • Attribute values: true, false
  • Default behavior: If this attribute isn’t included in the shortcode, anonymous donor comments are shown. If the attribute is included but left empty, the anonymous donor comments are not shown.

Show Avatar: Choose whether or not to show the donor’s profile picture. If the donor doesn’t have one, the standard avatar (a user symbol) will show in its place.

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

Show Name: Choose whether or not to show the name of the donor who left the comment.

  • Shortcode attribute: show_name
  • Attribute values: true, false
  • Default behavior: If this attribute isn’t included in the shortcode, the donor’s name will be shown, If the attribute is included but left empty, the donor’s name is not shown.

Comment Length: Decide how many characters from a comment can be shown. Comments longer than the specified length are cut off.

  • Shortcode attribute: comment_length
  • Attribute values: single numerical value (like 200)

Read More Text: Type the text you’d like to use for the “read more” button.

  • Shortcode attribute: read_more_text
  • Attribute values: your custom text
  • Default behavior: If this attribute isn’t included in the shortcode, the button will say Read More by default.

Comments Per Page: Decide how many comments to show at once. Any additional comments can be viewed using the Read More button.

  • Shortcode attribute: comments_per_page
  • Attribute values: single numerical value (example: 12)
Last updated 8 months ago

Start Fundraising Better Today!

Get GiveWP Today
GiveWP Plans