Total Donated $36,571.00

get_var( "SELECT SUM(meta_value) FROM $wpdb->postmeta WHERE meta_key='wpedon_button_payment_amount'" ); //instance 2 $zelle_total = $wpdb->get_var( "SELECT sum(meta_value) FROM wp_gf_entry_meta WHERE meta_key='3' AND form_id='1'" ); //instance3 $cashapp_total = $wpdb->get_var( "SELECT sum(meta_value) FROM wp_gf_entry_meta WHERE meta_key='3' AND form_id='2'" ); //Instance4 $total_manual = $zelle_total + $cashapp_total; //Instance5 $total_donated = $paypal_total + $total_manual; setlocale(LC_MONETARY,"en_US"); ?> ".money_format(" %(n", $paypal_total).""; } if($instance=="2") { echo "

".money_format(" %(n", $zelle_total)."

"; } if($instance=="3") { echo "

".money_format(" %(n", $cashapp_total)."

"; } if($instance=="4") { echo $total_donated; } if($instance=="5") { echo "

Total Donated
“.money_format(" %(n", $total_donated)."

"; } ?>