However, the majority of visitors are from the US, so you may have a wish to also show the dollar equivalent. Using this plugin you can do this without having to work out the conversion and then re-visit it in future to take into account conversion changes. Please visit the Github page for the latest code development, planned enhancements and known issues.
Open Currency Converter gets its data from the Open Exchange Rates website which is not associated with this plugin nor the developer. This site requires an App Key to be specified for it to work. This is to prevent over-use of the exchange system and to provide premium features for users who wish to pay for them.
Having a premium plan does not add any extra features to this plugin and is not a requirement. Enter the App Key into the appropriate field and Save the results. The exchange rate data is provided for free via the Open Source Exchange Rates project. Before using this plugin it is highly recommended that you review the Options screen and change any values, as appropriate.
You will also need to sign up for and enter an App Key before conversions will work. This would convert 50 from US dollars to UK pounds and output the result without any decimal places. If you wish to suppress these messages then you need to use a template see the later section on this — in this case no output will be generated in the case of an error. The template option allows you to specify other information to be output along with the conversion result.
None of the template will be output if any error occurs, including any error messages, allowing you to suppress any conversion text in the case of a problem. If you wish to perform a currency conversion within your theme, rather than within a post or page, then you can use a PHP function call.
For the use of developers, 2 global variables have been added which, if assigned within your site code, will override the conversion codes. This is useful if, say, you have multiple versions of the site in different languages — you can then assign these global variables depending on which site is being viewed and all currency will be converted based upon these settings.
These will only override the options screen and not specific parameters specified with a shortcode or function call. Alternatively, it can be downloaded from WordPress. Simple to set-up, simple to use, and the template option to avoid irrelevant text in the case of failures is an excellent idea. Thank you very much, developer! You save my life.
Working fine, doesnt alter your text and its automatic. All I wanted to do was have a simple line for a currency conversion, without having to use some bloated plugin. So this is exactly what I needed. The following people have contributed to this plugin. Thank you to the translators for their contributions. Learn more about my version numbering methodology. Translate into your language.
Key features include… No need to update exchange rates yourself — data is fetched from an Open Source API Over currencies supported An easy to use shortcode for embedding directly into your posts and pages A PHP function for those people who wish to add features in their theme Results can be cached, reducing resources and improving response Template to allow you to control how results are output Administration screen allowing you to define defaults and to view current exchange rates And much, much more!
Technical specification… Licensed under GPLv2 or later. If you would like to add a translation to this plugin then please head to our Translating WordPress page Please visit the Github page for the latest code development, planned enhancements and known issues. Getting Started To add to your site simply use the [convert] shortcode.
The Options Screen Once the plugin is activated two new administration screens will be present. This is required from — The currency code that you wish to convert from see the admin options for a list of valid codes. If you do not specify this value then the default from the options screen will be used to — The currency code that you wish to convert to see the admin options for a list of valid codes.
If you do not specify this value then the default from the options screen will be used. The latter is the default and will mean that the output will match the number of decimal places that the number was. Using Templates The template option allows you to specify other information to be output along with the conversion result.
You may also include the template between opening and closing shortcode tags. Request for upcoming update: Hope you will add thousand-separator in your next release version.
Probably the only automatic inline currency conversion plugin available. Support Issues resolved in last two months:More...