Sample code not correct
-
On the GiveWP website https://givewp.com/documentation/developers/how-to-query-donor-information/ the code for ‘Get the latest 3 Give Donors’ does not appear to be correct. The text states “In the above snippet you pulled the name for each donor with $donor->name object/key.” Nowhere in the code that is provided does it reference the $donor->name object/key.
I was looking for this sample code because I would like to change my shortcode-donor-wall.php to display the user’s “display name” not their first and last name.
The data I am looking for is displayed on the “donors” table so I am hoping I can pull it from the metadata. I tried a couple of guesses, but it did not work.
Do anyone have the correct code example for the ‘Get the latest 3 Give Donors'(I did look through https://github.com/impress-org/givewp-snippet-library, but I was not able to find anything) or the correct object/key to get the website display name.
The page I need help with: [log in to see the link]
- The topic ‘Sample code not correct’ is closed to new replies.