Currency Converter Shortcode

Below, you’ll find a detailed guide on how to add the Currency Converter Widget – Exchange Rates Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Currency Converter Widget – Exchange Rates Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Currency Converter Widget – Exchange Rates Plugin and the shortcodes it provides:

Plugin Icon
Currency Converter Widget – Exchange Rates

"Currency Converter Widget – Exchange Rates is a practical plugin for WordPress users. It offers real-time currency conversion and exchange rates, enhancing global eCommerce functions."

★★★★☆ (80) Active Installs: 3000+ Tested with: 6.3.2 PHP Version: false
Included Shortcodes:
  • [currency_bcc]

Currency Converter Widget – Exchange Rates [currency_bcc] Shortcode

The Currency Converter Widget shortcode enables a customizable currency converter on your WordPress site. The shortcode is highly flexible, allowing the user to specify parameters such as the default currencies, language, widget dimensions, color scheme, and various display options. The converter widget is embedded within an iframe for easy integration into any page or post.

Shortcode: [currency_bcc]

Parameters

Here is a list of all possible currency_bcc shortcode parameters and attributes:

  • type – Defines the widget’s type, either ‘fix’ or ‘custom’
  • a – Sets the initial amount to convert
  • f – Sets the initial ‘from’ currency
  • t – Sets the initial ‘to’ currency
  • lang – Sets the language for the widget
  • w – Sets the widget’s width
  • h – Sets the widget’s height
  • c – Sets the widget’s background color
  • fc – Sets the widget’s font color
  • g – Turns on/off gradient background
  • sh – Turns on/off shadow effect
  • b – Turns on/off border
  • fl – Turns on/off flag
  • p – Defines the widget’s display page
  • cs – Sets the widget’s currencies
  • s – Defines the widget’s symbol position
  • mf – Sets the widget’s monetary format
  • df – Sets the widget’s decimal format
  • d – Sets the widget’s date format
  • su – Turns on/off support us

Examples and Usage

Basic example – A basic usage of the currency converter widget shortcode which will display a default currency converter from USD to EUR.

[currency_bcc /]

Advanced examples

Display the currency converter widget with custom width and height, and converting from GBP to USD.

[currency_bcc type="custom" w="300" h="400" f="GBP" t="USD" /]

Display the currency converter widget with a custom background color, font color, and converting from AUD to JPY.

[currency_bcc c="00ff00" fc="000000" f="AUD" t="JPY" /]

Display the currency converter widget with gradient background, shadow, border, and flag turned on, and converting from CAD to INR.

[currency_bcc g="on" sh="on" b="on" fl="on" f="CAD" t="INR" /]

Display the currency converter widget with a custom amount to convert from CHF to NZD.

[currency_bcc a="100" f="CHF" t="NZD" /]

Display the currency converter widget with custom date format, monetary format, and decimal format, converting from SGD to BRL.

[currency_bcc d="2" mf="1" df="2" f="SGD" t="BRL" /]

Display the currency converter widget with support turned on, and converting from ZAR to CNY.

[currency_bcc su="on" f="ZAR" t="CNY" /]

PHP Function Code

In case you have difficulties debugging what causing issues with [currency_bcc] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'currency_bcc', 'currency_bcc_shortcode' );

Shortcode PHP function:

Code file location:

currency-converter-widget/currency-converter-widget/currency-converter-widget.php

Conclusion

Now that you’ve learned how to embed the Currency Converter Widget – Exchange Rates Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *