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
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:
Thanks!
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?
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/
Review that and let me know how it goes. Thanks!
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]?
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
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!
Yeah thanks! But how can I use it in a sidebar widget as well? Sorry, it’s very special.. :/
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
-
This reply was modified 9 years, 7 months ago by
kikelkik.
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
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!