Crypto Prices WP Plugin
What is this?
This is a slightly more specialized and modernized version of an old project you can check out here
Display the top 10 crypto curriencies (by market cap) of the day via shortcode after installing this plugin!
- Download the repo
- Upload the zip file via plugin upload in WordPress
- Activate the plugin in the dashboard
- Go make an API demo account on CoinGecko
- Paste your shiny new API key into the settings page
- Now you can paste this shortcode in a text block
[crypt0_prices](swap the zero for a regular “o”) and see the top 10 crypto prices!
Here’s a quick demo of it…
- Bitcoin: 62062 USD
- Ethereum: 3436.55 USD
- Tether: 0.999229 USD
- BNB: 407.62 USD
- Solana: 129.92 USD
- Lido Staked Ether: 3435.81 USD
- XRP: 0.606209 USD
- USDC: 1.002 USD
- Cardano: 0.678747 USD
- Dogecoin: 0.128523 USD
It uses the CoinGecko API to pull in a list of digital currencies and display them via shortcode.
CoinGecko does require an API key which is why I made the handy settings page where you can add it.
I also love that this plugin is really is just a single file just a tad over 100 lines so you can look it over and mess with it as you please!
If it works right out of the box but breaks shortly after installation, you probably didn’t add the API key in the settings or there’s a typo in it. For better or worse CoinGecko’s API will work once or twice with no key required.