Plugin NameCurrency Converter Shortcode for WordPress
AuthorXclamation: Website Design + Development
LicenseGPL (GNU - General Public License)
Plugin OverviewOur free WordPress Currency Converter Shortcode Plugin provides WordPress website owners with an easy to use WordPress Shortcode that can be used anywhere on your site - in 'Pages', 'Posts', 'Widgets' or anywhere else your WordPress 'Plugins' or 'Themes' may let you.
- Correct Currency Display (eg. '£1.00 GBP')
- Currency Country Flag Display
- Powered by Open Exchange Rates
We had a requirement to display prices on our website for an eCommerce solution and its various packages. The eCommerce solutions prices were in US Dollars and as most of our clients are UK based, we wanted our site to display the latest converted currency prices in British Pounds.
With this in mind, we decided to create a WordPress Shortcode Plugin to show converted currencies. We looked at the available options for ‘free currency conversion’ in the form of XML data feeds, API’s and couldn’t find a completely free service. Then we came across a JSON response from Google Currency Calculator and decided to go with that…
Once we had created the WordPress Currency Converter Shortcode, we decided to release it to the general public and post it to the WordPress Plugin Codex for everyone, for free! Feel free to download our WordPress Shortcode Plugin, but please consider taking some time to leave us a comment or feedback or maybe even buy us a coffee via a small PayPal Donation…
Exchange rates are provided for informational purposes only, and do not constitute financial advice of any kind. Although every attempt is made to ensure quality, NO guarantees are given whatsoever of accuracy, validity, availability, or fitness for any purpose – please use at your own risk. All usage is subject to your acceptance of the Terms and Conditions of Service, available at: https://openexchangerates.org/terms/
Open Exchange Rates License
Data sourced from various providers with public-facing APIs; copyright may apply; resale is prohibited; no warranties given of any kind. All usage is subject to your acceptance of the License Agreement available at: https://openexchangerates.org/license/
If you find our WordPress Currency Converter Plugin useful, please consider donating to us to help us develop more WordPress Plugins. Alternatively, you can always provide a link back to our website!
Download Plugin for Free!
- Download the plugin above.
- Visit the Open Exchange Rates website and sign up for a free account to get your ‘App ID’.
- Install the plugin from within your WordPress Admin (Plugins -> Add New -> Upload).
- Enter the App ID and configure the plugin settings within your WordPress Admin (Settings -> Currency Converter)
Currency Converter Shortcode Examples
Simply enter your ‘amount’ and the ‘from’ and ‘to’ Currency ISO Codes.
[currency amount="1" from="GBP" to="USD"]
Outputs: $1.34 USD
ISO Code Display
Currency ISO Codes are displayed after the converted amount by default as this is the correct way to display currencies. If you would like to turn off the ISO Code then simply set the ‘iso’ attribute value to ‘off’.
[currency amount="1" from="GBP" to="USD" iso="off"]
Flags aren’t shown by default but if you would like to display the Country flag for your currency shortcodes output, then simply add the ‘flag’ attribute with a value of either ‘left’ or ‘right’.
[currency amount="1" from="GBP" to="USD" flag="left"]
Outputs: $1.34 USD
[currency amount="1" from="GBP" to="USD" flag="right"]
Outputs: $1.34 USD
Currency Conversion Expiry/Update Time
Currently, all currency conversions are stored in the WordPress Database for a default time of 6 hours in order to try to achieve a balance between being up-to-date and reducing external calls to Google. You can however set your own ‘expiry’ time by setting the ‘expiry’ attribute to a set number of hours (note: This is per converted value).
[currency amount="1" from="GBP" to="USD" expiry="12"]
Updates the currency conversion information every 12 hours.