Title: Widget &#8211; donation wall and comment function
Last modified: October 1, 2016

---

# Widget – donation wall and comment function

 *  [kikelkik](https://wordpress.org/support/users/kikelkik/)
 * (@kikelkik)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/widget-donation-wall-and-comment-function/)
 * Hey there!
    Recently found your awesome plugin and missing just two features 
   I would really appreciate. Could you add a widget for the sidebar (donor wall)
   which allows me to show a configurable amount of latest donors with donation 
   amount and the name? Moreover it would be amazing if there was a feature that
   would allow donors to comment the donation which would be showed on the donation
   wall.
 * Looking forward to an answer! 🙂
 * ~kikelkik

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Contributor [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/widget-donation-wall-and-comment-function/#post-8248604)
 * Hi there,
 * We don’t have that feature at the moment. One user created a shortcode that lists
   the donors in simple text. You can use that here: [https://gist.github.com/jasontucker/dcf1a308716407c394f1be2cf21ae2f5](https://gist.github.com/jasontucker/dcf1a308716407c394f1be2cf21ae2f5)
 * We do plan to implement that feature, but we want to make sure first that donors
   can opt-out of being listed publicly.
 * To add custom fields for your donation forms, you can do that in one of two ways:
    - Use our Form Field Manager Add-on
    - Custom development, which we have [detailed docs on that here](https://givewp.com/documentation/developers/how-to-create-custom-form-fields/)
 * Thanks!
 *  Thread Starter [kikelkik](https://wordpress.org/support/users/kikelkik/)
 * (@kikelkik)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/widget-donation-wall-and-comment-function/#post-8252152)
 * Okay first thanks for the links 🙂
    Unfortunately, I don’t know where to implement
   the shortcode function. Into a give php, template, .. ? Could you let me know?
 *  Plugin Contributor [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/widget-donation-wall-and-comment-function/#post-8252303)
 * Hi there,
 * If you need guidance implementing custom PHP functions on your website, we have
   this guide here: [https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/](https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/)
 * Review that and let me know how it goes. Thanks!
 *  Thread Starter [kikelkik](https://wordpress.org/support/users/kikelkik/)
 * (@kikelkik)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/widget-donation-wall-and-comment-function/#post-8252729)
 * It throws an error if I save the function:
 *     ```
       Sorry, but your code causes a "Fatal error", so it is not applied!
       Please, check the code and try again. 
       ```
   
 * And anyway, how can I implement this function into the design? Is there a shortcode
   like [recentdonor]?
 *  Plugin Contributor [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/widget-donation-wall-and-comment-function/#post-8252889)
 * I reached out to the author of that snippet and I forked it and added it to our
   Snippet Library. This should work as expected (just don’t include the `<?php`
   at the beginning.
 * [https://github.com/WordImpress/Give-Snippet-Library/blob/master/useful-queries/recent-donors-shortcode.php](https://github.com/WordImpress/Give-Snippet-Library/blob/master/useful-queries/recent-donors-shortcode.php)
 * Then the shortcode you use is `[donor_list]`
 * Additionally, you can add a `number` attribute to limit how many names are listed,
   like so:
 * `[donor_list number="20"]`
 * Let me know how that goes. Thanks!
    -  This reply was modified 9 years, 7 months ago by [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/).
 *  Thread Starter [kikelkik](https://wordpress.org/support/users/kikelkik/)
 * (@kikelkik)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/widget-donation-wall-and-comment-function/#post-8254210)
 * Yeah thanks! But how can I use it in a sidebar widget as well? Sorry, it’s very
   special.. :/
 *  Thread Starter [kikelkik](https://wordpress.org/support/users/kikelkik/)
 * (@kikelkik)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/widget-donation-wall-and-comment-function/#post-8255689)
 * About the custom field: I copy-and-pasted the whole code from your guide, disabled
   the specific form. I can type in something into the textfield and submit but 
   it won’t be stored in the database. The wp_give_customermeta table is still empty.
   
   Here’s the code: [http://pastebin.com/yBsM9rg2](http://pastebin.com/yBsM9rg2)
    -  This reply was modified 9 years, 7 months ago by [kikelkik](https://wordpress.org/support/users/kikelkik/).
 *  Plugin Contributor [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/widget-donation-wall-and-comment-function/#post-8272891)
 * Regarding the sidebar, you can add shortcodes to Text Widgets as long as you 
   add this to your theme’s functions.php file:
    `add_filter('widget_text','do_shortcode');`
 * Regarding your custom field, I would suggest just using our whole code example
   first:
    [https://github.com/WordImpress/Give-Snippet-Library/blob/master/form-customizations/custom-fields-plugin.php](https://github.com/WordImpress/Give-Snippet-Library/blob/master/form-customizations/custom-fields-plugin.php)
 * Verify that that works for you as expected, then customize that one step at a
   time. That way you know it works and as long as you keep testing donations when
   you make changes you’ll see where and when you break the code.
 * Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Widget – donation wall and comment function’ is closed to new replies.

 * ![](https://ps.w.org/give/assets/icon-256x256.jpg?rev=2873287)
 * [GiveWP - Donation Plugin and Fundraising Platform](https://wordpress.org/plugins/give/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/give/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/give/)
 * [Active Topics](https://wordpress.org/support/plugin/give/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/give/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/give/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/widget-donation-wall-and-comment-function/#post-8272891)
 * Status: not resolved