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?

  1. Download the repo
  2. Upload the zip file via plugin upload in WordPress
  3. Activate the plugin in the dashboard
  4. Go make an API demo account on CoinGecko
  5. Paste your shiny new API key into the settings page
  6. 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: 63125 USD
  • Ethereum: 3276.35 USD
  • Tether: 0.998784 USD
  • BNB: 599.99 USD
  • Solana: 138.04 USD
  • USDC: 0.999554 USD
  • Lido Staked Ether: 3274.52 USD
  • XRP: 0.512838 USD
  • Dogecoin: 0.147213 USD
  • Toncoin: 5.44 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.