Studio164a / crowdfunding-wpml

All-in-one WPML Crowdfunding Campaigns
GNU General Public License v2.0
0 stars 1 forks source link

Totals at the site Stats #1

Open bum2 opened 10 years ago

bum2 commented 10 years ago

How can we set the functions at the 'Get the Stats' section of a 'fundify' theme to correctly show the number of campaigns and the total funded amount? when the campaigns are translated and your nice plugin in place, the campaign numbers show good, but the total stats for the whole site still count translated campagins as independent, showing incorrect total numbers. Actually the funtions used are: printf( '%s %s', wp_count_posts( 'download' )->publish, _n( edd_get_label_singular(), edd_get_label_plural(), wp_count_posts( 'download' )->publish ) ); and also printf( __( '%s Funded', 'fundify' ), edd_currency_filter( edd_format_amount( edd_get_total_earnings() ) ) );

ericnicolaas commented 10 years ago

I'm not personally familiar with Fundify, but I believe the total funded amount should be correct either way, since that's just a grand total of the amount raised, but the number of campaigns would definitely be skewed. I'll take a look at adding a function in to retrieve the correct count there.