前言介紹
- 這款 WordPress 外掛「Inserter」是 2018-02-10 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2018-02-17,距離現在已有 2633 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.9 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
aristath |
外掛標籤
rest | rest-api | templates | underscorejs |
內容簡介
Inserter 允許您從儀表板創建自定義模板,並在您的頁面中插入它們,取代您選擇的 CSS 選擇器。
您可以使用 WordPress 模板插值的underscore.js,並在您的模板中包含基於 JS 的邏輯。
您可以使用 REST API 公開數據,使用全局$post對象,或提供自己格式化為 JSON 的數據。
要查看可用數據,您可以在模板中添加此行,然後在您的網站加載時檢查控制台:
<# console.log( data ); #>
您可以在 https://aristath.github.io/wordpress/introducing-wordpress-inserter-plugin上閱讀有關如何使用插件的更多信息。
原文外掛簡介
Inserter allows you to create custom templates from your dashboard and insert the in your pages, replacing a CSS selector of your choosing.
You can use the WordPress Templates Interpolation for underscore.js and include JS-based logic in your templates.
You can expose data using the REST API, using the global $post object, or provide your own JSON-formatted data.
To see the available data, you can add this line in your template and then check the console when your site loads:
You can read more about how to use the plugin on https://aristath.github.io/wordpress/introducing-wordpress-inserter-plugin.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Inserter」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。