开发者 |
webdevmattcrom
christopherross |
---|---|
更新时间 | 2016年4月7日 07:49 |
捐献地址: | 去捐款 |
PHP版本: | 2.0.0 及以上 |
WordPress版本: | 3.0.3 |
If you would like to display the current money raised, include the following code in your WordPress theme: To display the graphic results, include the following code in your theme:
As of 0.6.8, you will see a new widget (Appearance > Widgets) for the Our Progress graphic.
There are two common reasons graphics are not appearing. Check that your wp-content/plugins/fundraising-thermometer-plugin-for-wordpress/ folder (and all subfolders) is readable (chmod 755). Ensure the plugin folder is named fundraising-thermometer-plugin-for-wordpress, not ourprogress as in earlier versions.
In a post, you can add [show_ourprogress_graphic] or [show_ourprogress] to return the graphic file or amount donated. If you want to show the target amount in a post, use [show_ourprogress_target]
In some cases, local currency needs to be set in the code by adding the line setlocale(LC_MONETARY, 'en_US'); immediately under the first */ for example: Version: 0.2.5 */ setlocale(LC_MONETARY, �en_US�);
The plugin uses standard php money_format(); formating.
Until I upgrade the version number to 1.x, I still consider this plugin to be under development but it has been tested and works well.