前言介紹
- 這款 WordPress 外掛「GenerateWP Embed」是 2015-02-19 上架。
- 目前有 50 個安裝啟用數。
- 上一次更新是 2019-07-06,距離現在已有 2129 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.5 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.2.4 以上。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
ramiy | generatewp |
外掛標籤
code | embed | oembed | shortcode | GenerateWP |
內容簡介
使用此 WordPress 外掛,您可以展示從 GenerateWP.com 取得的程式碼片段於您的 WordPress 網站上,只需使用程式碼片段的 URL 或 ID。
從您的儀表板或網站公開的片段庫中選擇任何公開片段,或創建您自己的片段!複製片段 URL,並將其粘貼到您的文字編輯器中。然後,轉到視覺化編輯器,以確認它正常加載。
或者,您可以使用以下屬性,使用 [generatewp id=""] 短碼將片段嵌入您的內容:
id – 片段ID(必填)。
theme – 嵌入片段的主題。可接受主題:github、geonyx、kimono、paradise、soft、zenophilia、md(材料設計)、luminous_dark(深色佈局)、luminous_light(淺色佈局)。預設為“github”。
lang – Cod 語言。允許的語言: php、html、css、javascript。預設為“php”。
ln – 預設為開啟行號,但可以使用 ln 參數將其關閉,將其設置為零(0)。
sl – 開始行號。預設為1,如果開啟行號。
al – 自動連結列在代碼中的連結。預設為0,沒有自動連結。
mh – 嵌入片段的最大高度,以覆蓋垂直捲軸。預設為500個像素(pixels)。
關於 GenerateWP
GenerateWP 提供用戶友好工具,讓開發人員創建基於 WordPress 的高級應用程序。使用簡單的代碼生成器,開發人員可以使用最新的 WordPress 編碼標準和 API 創建自定義和高質量的代碼。
原文外掛簡介
Create code snippets and showcase them to your users.
About GenerateWP
GenerateWP provides user-friendly tools for developers to create advanced applications built on top of WordPress. With simple code generators, developers can create custom and high quality code using the latest WordPress coding standards and API’s.
GenerateWP WordPress Plugin
Using this plugin you can showcase your code snippets from GenerateWP.com in your WordPress site, using the snippet URL or snippet ID.
Choose any public snippet from your dashboard or from the sites public snippet library, or create your own! Copy the snippet URL and paste it into your text editor. Then simply click over to the visual editor to confirm that it loads properly.
Alternatively, you can embed snippets to your content using the [generatewp id=""] shortcode with the following attributes:
id – Snippet ID (required).
theme – The embedded snippet theme. Accepted themes: github, geonyx, kimono, paradise, soft, zenophilia, md (material design), luminous_dark (dark theme), luminous_light (light theme). Default is ‘github’.
lang – Cod syntax language. Accepted languages: php, html, css, javascript. Default ‘php’.
ln – Line numbers are turned on by default but you can turn it off using the ln parameter and set it to zero (0).
sl – Starting line number. Default 1, if line numbers turned on.
al – Auto-link links listed in the code. Default 0, no auto links.
mh – Max height for the embedded snippet to overwrite vertical scroll bars. Default 500 (pixels).
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「GenerateWP Embed」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | trunk |
延伸相關外掛(你可能也想知道)
Embed PDF Viewer 》透過oEmbed或以區塊的方式,將來自媒體庫或其他地方的PDF嵌入至object標籤或Google Doc Viewer當作備用選項。URL只需要是可以讓全球使用的連結即可。, 靈感來...。
Embed Privacy 》當訪客進入您的網站時,從 YouTube 或 Twitter 等外部網站嵌入的內容會立即加載。Embed Privacy 解決了這個問題,直到訪客決定允許加載外部內容之前,這些內...。
Disable Embeds 》這個外掛的功能:, , 防止他人嵌入您的網站。, 防止您嵌入非白名單網站。, 禁用所有與此功能相關的 JavaScript。, 從新版區塊編輯器中移除 WordPress 嵌入區...。
oEmbed Plus 》本外掛增加在區塊編輯器(Gutenberg)和經典編輯器中嵌入 Facebook 和 Instagram 貼文的支援。由於 WordPress 核心使用的舊版 API 已被廢止,因此這項功能已...。
Wistia WordPress Plugin 》Wistia 的嵌入代碼非常耐用,但 WordPress 有一個麻煩的歷史。這個外掛程式增加了 oEmbed 支持,這樣粘貼 Wistia 視頻頁面的鏈接將會嵌入視頻。 視頻的網址必...。
Embedly 》此外掛增加了預覽文章功能,讓您可以預覽包括自己的博客文章在內的任意文章。您還可以預覽Gfycat、Twitch、Google Maps及Embedly所支援的500多個供應商之內容...。
Video Blogster Lite 》無需在 YouTube 上搜尋並複製/貼上視頻到 WordPress。 Video Blogster Lite 會自動擷取關鍵字搜索中每個視頻的標題、描述、縮略圖和統計資料。它完美地整合了...。
Sketchfab Embed 》將您的3D模型上傳到Sketchfab,並在您網站的任何WordPress頁面上嵌入它們。, 關於Sketchfab, Sketchfab 是3D檔案發佈和尋找最佳3D內容的平台。數百萬人製作3D...。
Sch.gr Commons 》此外掛在 WordPress 文章、頁面及自訂文章類別中增加 https://video.sch.gr 或 https://maps.sch.gr 提供的希臘學校網路內容分享的 oEmbed 支援。, 此外掛無...。
PB oEmbed HTML5 Audio – with Cache Support 》這個外掛使用 WordPress 用於其他用途(例如YouTube視頻等)的 oEmbed 技術,為文章和頁面添加了放置音頻文件的功能。音頻文件使用 HTML5 音頻標籤嵌入,對於...。
oEmbed Gist 》, 輕鬆嵌入您的 gist 原始碼至 WordPress。, 只需將 gist 的 URL 貼上即可。, 您可以嵌入特定的 gist 版本。, 您可以嵌入多檔案 gist 中的單一檔案。, , 摘要...。
Magyar Video Embed 》此外掛可協助將不同的匈牙利線上影片服務提供者的影片嵌入網頁中,就像嵌入 YouTube 連結一樣。。
Hide Related Video Youtube 》「Hide related video youtube」是一個可移除 YouTube oEmbed 中其他頻道相關影片的外掛程式。, 在啟用此外掛程式時,它會清除 oEmbed 快取,以便影片可以被...。
Github Embed 》此外掛允許您只需貼上 URL,即可嵌入 GitHub 的詳細資訊,就像您嵌入其他嵌入來源一樣。目前支援:, , 資料庫, 使用者檔案, 專案里程碑摘要, 專案貢獻者, , ...。
Content Cards 》Content Cards 讓普通的網頁連結變得非常好看,可以嵌入一個美麗的 Content Card 連結到任何網站。, 藉由使用 OpenGraph 資料,Content Cards 會自動擷取嵌入...。