
內容簡介
以下是對此外掛的總結:
這個外掛讓您能輕鬆將 API Widgets 的小工具嵌入到您的 WordPress 網站內。
使用 API Widgets,您可以將 JSON 資料輕鬆轉換為圖表、表格和自訂 HTML,然後將其嵌入到您的網站上。嵌入後,資料會自動在您選擇的間隔時間內更新。
您可以連接 API 並從 API 轉換 JSON 資料,或者您也可以使用您自己的 JSON 檔案。
接著是問題與答案:
1. 如何將 API Widgets 嵌入到您的 WordPress 網站中?
- 參訪 API Widgets 的轉換器。
- 將您的 API 網址(或 JSON 檔案)加入。
- 選擇表格、圖表或自訂 HTML。
- 執行轉換器。
- 自訂您的表格、圖表或 HTML 應該如何顯示。
- 點擊發布。
- 獲得您的新小工具的 ID,並嵌入到您的網站中。
2. 在 WordPress 中嵌入 API Widgets 的方式是什麼?
- 當插件已安裝後,只需在您想要在網站上顯示小工具的地方添加簡碼或模板標記。
3. 如何使用短代碼在網站上顯示小工具?
- 在您想要顯示小工具的地方添加此短代碼(請使用您自己的小工具 ID):[api-widgets id="123"]
4. 如何使用模板標記在網站上顯示小工具?
- 在您想要顯示小工具的地方添加此模板標記(請使用您自己的小工具 ID):<?php api_widgets( 123 ); ?>
5. 提供的文件中包含哪些部分?
- 什麼是小工具?
- 創建圖表小工具。
- 創建表格小工具。
- 創建 HTML 小工具。
外掛標籤
開發者團隊
② 後台搜尋「API Widgets – API to Table, Chart or HTML」→ 直接安裝(推薦)
原文外掛簡介
Convert JSON API data into Tables, Charts or custom HTML with no code and then embed these on your website. After embedding, the data will update automatically at your chosen interval.
This plugin allows you to easily embed your Widgets from API Widgets into your WordPress website.
Works with APIs or JSON files. No coding required.
How It Works
Visit the Converter at API Widgets.
Connect to your API (or JSON file).
Select either Table, Chart or custom HTML.
Run the Converter.
Customize your Table, Chart or HTML.
Click Embed.
Get the ID of your new Widget & embed into your site.
Use the shortcode or template tag wherever you want the Widget shown on your site.
Shortcode
Add this shortcode (using your own Widget ID) wherever you want the Widget displayed.
[api-widgets id="123"]
Template Tag
Add this template tag (using your own Widget ID) wherever you want the Widget displayed.
Documentation
What is a Widget?
Convert JSON to Chart
Convert JSON to Table
Convert JSON to HTML
