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
What does it do?
Display the top 10 crypto curriencies (by market cap) of the day via shortcode after installing this plugin!
How do I use it?
- 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: 100229 USD
- Ethereum: 3924.46 USD
- Tether: 0.999575 USD
- XRP: 2.37 USD
- Solana: 225.13 USD
- BNB: 717.97 USD
- Dogecoin: 0.406881 USD
- USDC: 0.999692 USD
- Cardano: 1.11 USD
- Lido Staked Ether: 3920.19 USD
Tech wise, what’s neat about it?
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!
Troubleshooting tip(s)
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.