Support » Plugin: GiveWP - Donation Plugin and Fundraising Platform » better donor list shortcode showing random donors on different Campaign

  • Resolved oshi


    Hi, I’m using this Give-Snippet better-donor-list-shortcode

    Works fine the only problem with it display random donors from different Campaign on the new Campaign which is very confusing? When it should only show donors who donated for that particular campaign.

    So my Question is: How can I make it only show those who donated display their info?


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Kevin Hoffman


    There is a form_id attribute that you can add to the shortcode so it only displays donors from that specific form like so:

    [my_donor_list form_id="{FORM_ID_GOES_HERE}"]

    e.g. [my_donor_list form_id="123"]

    Also note that we will be including an official shortcode for “donor wall” functionality in the upcoming Give 2.2.0 release. When that releases in the near future, you’ll want to use the official shortcode instead.

    Thread Starter oshi


    Hi Kevin I’m aware of this sorry for not mentioning the shortcode id, What i’m looking for is something more like automatic display the donor for that particular campaign rather than doing it manually for each new campaign. My plan is to add the shortcode on the single-give-form.php where it will display the donors for that particular campaign.

    Thanks once again

    • This reply was modified 3 years ago by oshi.
    Plugin Contributor Kevin Hoffman


    I see. If your goal is to automatically display donors associated with the current Give form, then you probably want to customize a give.php file for your theme. Inside your give.php template, you can include a shortcode that dynamically pulls in the form ID like so:

    $post_id = get_the_ID();
    echo do_shortcode( '[my_donor_list form_id="' . $post_id . '"]' );

    If you need help customizing give.php, see our documentation:

    Thread Starter oshi


    WOW thank you so much Kevin straight to the point you have help me so much.

    I Really appreciate for the help, Great Community #Give

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘better donor list shortcode showing random donors on different Campaign’ is closed to new replies.