MeltValue Gold & Silver Prices

By meltvalue

0+ active installationsVersion 1.0.0

Show live gold, silver, platinum and palladium spot prices on your site with a block, a widget or a shortcode.

Description

MeltValue Gold & Silver Prices adds a small, clean price box to any page, post, sidebar or footer. It shows the current spot price for the metals you pick, per troy ounce or per gram, with today’s change in dollars and percent.

It suits coin shops, gold buyers, pawn shops, jewelers, bullion dealers, coin clubs and anyone who writes about precious metals.

  • Gold, silver, platinum and palladium, in US dollars
  • Per troy ounce or per gram
  • Today’s change, colored up or down
  • Light and dark styles that pick up your theme’s font
  • A block for the block editor, a classic widget and a [meltvalue_prices] shortcode
  • Prices are part of the page’s HTML, so they show without JavaScript
  • Optional refresh every minute while a visitor has the page open (off by default)
  • Cached on your server, so your pages stay fast even if the price source is slow
  • No links or credits on your site unless you turn them on

Prices come from MeltValue.com, a free gold and silver melt value calculator.

Shortcode

[meltvalue_prices] uses the defaults from Settings > MeltValue Prices. You can override them:

[meltvalue_prices metals="gold,silver,platinum,palladium" unit="gram" theme="dark" show_change="no" title="Metal Prices"]
  • metals: any of gold, silver, platinum, palladium, comma separated
  • unit: oz or gram
  • theme: light or dark
  • show_change: yes or no
  • title: heading text, or empty to hide it

External services

This plugin gets spot prices from the MeltValue.com price service at https://meltvalue.com/api/v1/spot.

This plugin relies on MeltValue.com (https://meltvalue.com/) as a service to provide the prices it shows. Without it the plugin has no price data.

  • When a page shows a price box, your web server requests current prices from MeltValue.com, at most once every five minutes, and caches them. The request carries no data about your site’s visitors. Like any web request, it shares your server’s IP address.
  • If you turn on “Refresh prices every minute” (off by default), each visitor’s browser also requests prices from MeltValue.com once a minute while the page is open. That request shares the visitor’s IP address and browser details with MeltValue.com. No cookies are set and no other data is sent.

MeltValue.com terms of use: https://meltvalue.com/terms
MeltValue.com privacy policy: https://meltvalue.com/privacy

Installation

  1. Upload the plugin and activate it, or install it from Plugins > Add New.
  2. Go to Settings > MeltValue Prices to pick your default metals, unit and style.
  3. Add the “Live Gold & Silver Prices” block, the “MeltValue Gold & Silver Prices” widget, or the [meltvalue_prices] shortcode.

FAQ

How often do prices update?

Your site fetches new prices every five minutes. If you turn on live refresh, the numbers on an open page also update every minute.

Will it slow down my site?

No. Prices are cached on your server, the request times out after four seconds, and if the price source is down the box keeps showing the last prices it had (for up to a day) instead of waiting.

Does it work with page caching plugins?

Yes. A cached page shows the prices from when it was cached. Turn on live refresh if you want visitors’ browsers to update them.

Does the plugin add links to my site?

Not unless you ask it to. The price box has no links by default. In Settings > MeltValue Prices you can turn on a credit that adds a “Prices from MeltValue.com” link under the box and links each metal name to its MeltValue.com price page. You can turn it off again at any time.

Which currency does it use?

US dollars.

Screenshots

Changelog

1.0.0

  • First release.