內容簡介
SchoolDigger Widgets 外掛允許用戶在任何 WordPress 頁面或文章中嵌入互動式、資料豐富的學校和學區小工具。這些小工具由 SchoolDigger 提供,顯示最新的學校資訊、排名、考試成績等。
【主要功能】
• 學校資訊卡:顯示學校名稱、地址、聯絡方式等
• 學區資訊卡:提供學區摘要及學校數量
• 排名徽章:視覺化星級評分及百分位指示
• 學校搜尋器:依郵遞區號或城市搜尋學校
• 頂尖學校列表:按州和級別排名的學校列表
• 考試成績圖表:互動式考試成績條形圖/折線圖
外掛標籤
開發者團隊
原文外掛簡介
SchoolDigger Widgets lets you embed interactive, data-rich school and district widgets on any WordPress page or post. Powered by SchoolDigger, the widgets display up-to-date school information, rankings, test scores, and more.
Available Widgets:
School Information Card (Free) — School name, address, contact, grade levels, and ranking
District Information Card (Free) — District summary with school counts and rankings
Ranking Badge (Basic+) — Visual star rating and percentile indicator
School Finder (Basic+) — Search schools by ZIP code, city, or address with filters
Top Schools List (Basic+) — Ranked list of top schools by state and level
School Autocomplete (Basic+) — Type-ahead search for schools
District Autocomplete (Basic+) — Type-ahead search for districts
Test Score Chart (Pro+) — Interactive bar/line charts for test score data
Nearby Schools Map (Pro+) — Interactive map with school markers and popups
Two ways to embed:
Gutenberg Block — Visual widget configurator in the block editor
Shortcode — [sd_widgets widget="school-info-card" school-id="340576000472"]
External Service:
This plugin relies on the SchoolDigger Widgets service to load and render widgets. When a page containing a widget is viewed, a JavaScript file is loaded from https://widgets.schooldigger.com and widget data is fetched from the SchoolDigger API. No personal visitor data is collected or transmitted — only the widget parameters (school ID, widget type, etc.) are sent to retrieve public school data.
Service URL: https://widgets.schooldigger.com
Terms of Service: https://widgets.schooldigger.com/terms
Privacy Policy: https://widgets.schooldigger.com/privacy
Shortcode Reference
School Info Card:
[sd_widgets widget=”school-info-card” school-id=”340576000472″ show-address=”true” show-ranking=”true”]
District Info Card:
[sd_widgets widget=”district-info-card” district-id=”0600001″ show-school-counts=”true”]
Ranking Badge:
[sd_widgets widget=”ranking-badge” school-id=”340576000472″ style=”badge”]
School Finder:
[sd_widgets widget=”school-finder” search-mode=”simple” initial-state=”CA” default-level=”Elementary”]
Top Schools List:
[sd_widgets widget=”top-schools-list” state=”NY” level=”High” count=”10″]
Nearby Schools Map:
[sd_widgets widget=”nearby-schools-map” center-mode=”school” school-id=”340576000472″ radius-miles=”5″]
Test Score Chart:
[sd_widgets widget=”test-score-chart” school-id=”340576000472″ chart-type=”bar” x-axis=”subject”]
Build Instructions
The Gutenberg block JavaScript in blocks/schooldigger-widget/build/ is compiled from the human-readable source files included in blocks/schooldigger-widget/src/.
To rebuild from source:
Navigate to blocks/schooldigger-widget/
Run npm install
Run npx wp-scripts build
This uses @wordpress/scripts (webpack-based) to compile src/index.js and src/edit.js into build/index.js.
