How to use the [cryptowp] shortcode
With the [cryptowp]
shortcode you can easily show coin data from any imported coin in plain text, list, or a grid layout.
The [cryptowp]
shortcode is especially useful for blending realtime data in articles, or even in sidebar widgets. This guide will show you all of the different variations you can use the shortcode to display coin data.
1. Plain Text
The best part about this shortcode is you can display unstyled text of just about any piece of data about your coin to blend it seamlessly into surrounding text.
Here’s a basic example that shows the current price of Bitcoin:
[crypto coins="BTC" type="text" show="price"]
The price of Bitcoin is: $26,607.87
You can only show data about 1 coin per shortcode, so add multiple instances of this shortcode to display multiple coins.
As of version 1.2.2 you can now calculate how much crypto any dollar amount is worth with the new calc
attribute. Example below:
[crypto coins="BTC" type="text" show="price" calc="200"]
Preview: $200 worth of Bitcoin is currently worth 0.0075 BTC.
TIP: By default the text shortcode shows price, so to save some typing, you can omit the “show” attribute.
Show Attributes
Apart from price, you can show other data about coins by plugging one of the following values into the show
attribute:
percent
(24h percent change)supply
(Available coin supply)market_cap
(Market Cap)price_btc
(Price in Bitcoin)calc
(Calculate dollar amount into crypto)
Example:
[crypto coins="ETH" type="text" show="market_cap"]
The current market cap of Ethereum is $222,566,799,321.59.
2. Grid Layout
By simply pasting the [crypto]
shortcode with no attributes, a grid that lists all of your coins will appear. To only show specified coins, in however many columns you choose, enter their IDs separated by commas into the coins
attribute like so:
[crypto coins="BTC,LTC" columns="2"]
Bitcoin
$26,607.87
Litecoin
$88.54
All Attributes
You may customize the Grid layout further by adding the following attributes:
coins="BTC,LTC,etc"
(which coins to show in Grid)type="grid"
(default, load Grid layout)columns="2"
(enter how many columns to show coins in)hide_icon="true"
(hides all coin icon images)hide_percent="true"
(hides 24h percentage change)classes="my-class-name"
(add custom CSS to Grid)
3. List Layout
The List layout works very similar to the Grid, though the layout is totally different. You can create a List layout like so:
[crypto type="list" coins="ETH,DASH,NEO,ARK"]
Ethereum
$1,851.50
NEO
$9.08
Ark
$0.25
Leave the coins
attribute blank to display all imported coins.
All Attributes
coins="BTC,ETH,etc"
(which coins to show in List)type="list"
(default, load Grid layout)columns="2"
(enter how many columns to show coins in)hide_icon="true"
(hides all coin icon images)hide_percent="true"
(hides 24h percentage change)classes="my-class-name"
(add custom CSS to Grid)