[WordPress] 外掛分享: Page Excerpt Widget

首頁外掛目錄 › Page Excerpt Widget
200+
安裝啟用
★★★★★
5/5 分(6 則評價)
4080 天前
最後更新
問題解決
WordPress 2.8+ v0.3 上架:2012-07-10

內容簡介

我創建了一個 WordPress 的小型外掛程式,採用小工具(widget)形式,允許使用者在他們選擇的側邊欄區域顯示一個頁面摘要。
我寫這個外掛的初衷是為了取代我為客戶做的一個小型佈景主題駭客(hack),客戶想在首頁上展示一個頁面的摘要,當然要連結到完整的頁面。與其用硬編碼的方式保留原樣,我想提供一个更好的方式,使最終用戶可以更改要連結的頁面。希望這對某人有用。

現在您可以:

定義用作摘要的字符數量
從所有現有頁面中選擇頁面
將頁面標題鏈接到頁面上
在頁面後附加一個鏈接
為閱讀更多的鏈接定義自定義標籤
添加多個小工具實例

我計劃增加以下功能:

一些國際化的內容

歡迎提供建議

由於這是我的第一個外掛和小工具,因此歡迎提出建議、改進和更多意見。我已經把代碼發布到了 GitHub 上,以便更輕鬆地進行討論和改進。 https://github.com/JonathanMH/page-excerpt-widget

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Page Excerpt Widget」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

I have created a little WordPress plugin in the shape of a widget, which allows the user to display an excerpt of a page in a sidebar area of their choice.
I wrote this to replace a little theme hack I did for a client, where the front page was supposed to have an excerpt of a page on the front page, of course linking to the full page. Instead of keeping it that way and hard coding the page-id, I wanted something where the end user could change which page was supposed to be linked. I hope it will be of use to someone.
Right now you can:

Define the amount of characters to use as an excerpt
Select the page from all existing pages
Link the title of the page, to the page
Append a link to the page
Decide a custom label for the read more link
add multiple instances of the widget

I plan to increase the functionality with:

some internationalisation

Suggestions welcome
Since this is my first plugin and widget, suggestions, improvements and more are very welcome. I’ve also published the code on github, for easier discussion and improvement. https://github.com/JonathanMH/page-excerpt-widget

延伸相關外掛

文章
Filter
Apply Filters
Mastodon