| 开发者 | dreamwell |
|---|---|
| 更新时间 | 2026年2月19日 14:57 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[calcslive_qty value=25 unit="mm"][calcslive id="YOUR_ID"][calcslive_qty value=25.4 unit="mm"] for single quantity[calcslive_qty_pair values="10,20" unit="cm"] for quantity pair, and[calcslive_qty_triplet values="1,2,3" unit="m"] for quantity triplet.[calcslive id="YOUR_ID"] to your product page/wp-content/plugins/calcslive-article-embed/, or install directly through the WordPress plugins screen.[calcslive_qty] shortcodes immediately for inline unit conversion (no API key needed).[calcslive id="..."] shortcode or CalcsLive block to embed calculators.[calcslive_qty value=25.4 unit="mm"]
Value pair (e.g., dimensions):
[calcslive_qty_pair values="10,20" unit="cm"]
Value triplet (e.g., L x W x H):
[calcslive_qty_triplet values="1,2,3" unit="m"]
Optional attributes:
dp - Decimal places (default: 2)show_unit_arrow - Show/hide unit dropdown arrow (default: true)You can get an API key from your CalcsLive account at calcslive.com/account/api-keys. You need to create an embed-type API key and add your WordPress domain.
The article ID is the short code at the end of your CalcsLive article URL. For example, in https://www.calcslive.com/view/3M7EJLZQ2-4N5, the article ID is 3M7EJLZQ2-4N5.
Yes! Each article can contain multiple calculations with different namespaces. You can also embed multiple articles on the same page using multiple shortcodes.
Yes, you can use the shortcode [calcslive id="..."] in any page builder that supports WordPress shortcodes.
The WordPress plugin is free and open source. CalcsLive offers a free tier with 2 embed pages, or you can upgrade for more pages and domains.
Yes! The embedded article is fully interactive. Customers can change input values and units, and the calculations update in real-time.
No. The [calcslive_qty], [calcslive_qty_pair], and [calcslive_qty_triplet] shortcodes work entirely client-side with no external service. They use the bundled physical-quantity web component library.
The pq.umd.js file is built from the physical-quantity npm package (MIT licensed). The source is human-readable and includes version metadata in a banner comment.
The unit converter supports length, mass, temperature, energy, force, pressure, volume, area, and more. Visitors click the unit dropdown to convert between compatible units (e.g., mm ↔ inches, kg ↔ lbs, °C ↔ °F).
[calcslive_qty], [calcslive_qty_pair], [calcslive_qty_triplet][calcslive id="..." width="..." height="..."]