| 开发者 | dreamwell |
|---|---|
| 更新时间 | 2026年4月21日 04:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[calcslive_qty value=25 unit="mm"][calcslive id="YOUR_ID"][shortcodes], CalcsLive shortcodes work inside it[calcslive_qty value=25.4 unit="mm"], value input without quote[calcslive_qty value='25.4' unit="mm"], value input with ' '[calcslive_qty value="25.4" unit="mm"], value input with " "[calcslive_qty_pair values="10x20" unit="cm"] for 2D dimensions, or[calcslive_qty_pair values="(10, 20)" unit="cm"] for coordinates/range[calcslive_qty_triplet values="10x20x30" unit="cm"] for 3D dimensions, or[calcslive_qty_triplet values="(10, 20, 30)" unit="cm"] for 3D coordinates[calcslive id="YOUR_ID"] to your product page/wp-content/plugins/calcslive-article-embed/, or install directly through the WordPress plugins screen.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. Both the calculator embed and the unit converter shortcodes work in any page builder that renders standard WordPress shortcodes:
[calcslive id="..."] or [calcslive_qty ...]Yes. Any plugin that adds custom tabs to WooCommerce product pages (and renders shortcodes in their content area) is compatible. Tested with Custom Product Tabs for WooCommerce:
[calcslive id="YOUR_ID"] or [calcslive_qty value="25.4" unit="mm"]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.
570+ units across 67 categories — the same full library used by CalcsLive. Covers length, mass, temperature, pressure, force, flow rate, energy, electrical, and many more. See the full Units Reference. Visitors click the unit dropdown to convert between compatible units (e.g., mm ↔ inches, kg ↔ lbs, °C ↔ °F).
uc-qty-pair now correctly supports x-format (values="10x20") and tuple format (values="(10, 20)")[calcslive_qty], [calcslive_qty_pair], [calcslive_qty_triplet][calcslive id="..." width="..." height="..."]