[WordPress] 外掛分享: Flexible Recent Posts

首頁外掛目錄 › Flexible Recent Posts
WordPress 外掛 Flexible Recent Posts 的封面圖片
400+
安裝啟用
★★★★★
5/5 分(8 則評價)
3801 天前
最後更新
問題解決
WordPress 3.0+ v1.0.4 上架:2012-04-17

內容簡介

尋找維護者。請寄信至[email protected]

彈性最新文章 (FRP) 外掛讓你可以使用自定義模板在部落格上新增最新文章的小工具。

主要功能如下:

小工具中每篇文章都有模板。你可以寫自己的 HTML 模板或在小工具表單中覆寫預設模板。
模板支援短碼。你可以使用內建的短碼在小工具中插入與目前文章相關的資訊:文章標題、特色圖像、摘要、日期、永久連結、作者、評論。
限制要從哪些專有名詞中顯示文章。顯示所有或僅從已選擇的專有名詞中的文章。
要顯示的文章數量。設定在小工具中要顯示的最新文章數量。
所有文章連結。選擇顯示鏈接選項,可以在標題或所有文章後顯示連結,打開選定文章類別頁面。設定連結標題或自訂連結網址。

有用的連結:

模板快捷鍵
功能請求
問題
捐贈 (Flattr)

翻譯人員:

俄語 (ru) - Paul Annekov

授權

使用基於 FatCow 圖示套件授權的圖示,該圖示授權基於 創用CC協議3.0許可。

短碼

外掛的模板系統支援了與當前小工具文章相關的5個短碼,你可以在自己的模板中使用:

標題 [frp_title]

顯示文章標題。

範例:<h4>[frp_title]</h4>

摘要 [frp_excerpt length=””]

使用 get_the_excerpt 函式顯示文章摘要。
你可以使用length屬性指定摘要長度。如果未指定 - 將使用 WordPress 預設的文章摘要長度。

範例:<div class="excerpt">[frp_excerpt]</div>, [frp_excerpt length="15"]

日期 [frp_date format=”F j, Y” time_since=”0″]

顯示文章日期。你可以使用短碼參數format更改日期格式。嘗試閱讀這裡中的格式值。
加上1作為值的time_since參數,可以顯示過去的時間: 30秒前,5分鐘前,12小時前,6月3日。

範例:<div class="date">[frp_date format="Y/m/d g:i:s A"]</div>, <div class="elapsed">[frp_date time_since="1"]</div>

連結 [frp_link]

顯示文章永久連結。

範例:<a href="[frp_link]">閱讀更多</a>

特色圖像 [frp_thumbnail size=”32×32″]

顯示文章的特色圖像。添加size短碼參數,可以更改圖像大小。你可以定義大小為寬度x高度或大小名稱 (內建的或在佈景主題中定義的)。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.4) 或搜尋安裝

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

原文外掛簡介

Looking for maintainer. Write me to [email protected]
Flexible Recent Posts (FRP) plugin gives you possibility to add widget to your blog with recent posts using user-defined template.
The main features are:

Template for each post in widget. You can write your HTML-template or overwrite default in widget form.
Shortcodes support in template. You can use built-in shortcodes to insert info related to current post in widget: title, featured image, excerpt, date, permalink, author, comments.
Restrict terms from which you want to display posts. Display posts from all terms or from selected only.
Number of posts to display. Set number of latest posts that will be displayed in widget.
All posts links. Select option to display link near the title or/and after all posts that will open selected posts category page. Set link title or custom link URL.

Useful links:

Template shortcodes
Feature requests
Bugs
Donate (Flattr)

Translators:

Russian (ru) – Paul Annekov

Licenses

Uses FatCow Icon Set licensed under Creative Commons Attribution 3.0 License.

Shortcodes
Plugin template system supports 5 shortcodes related to current widget post, that you can use in your template:
Title [frp_title]
Displays post title.
Example:

[frp_title]

Excerpt [frp_excerpt length=””]
Displays post excerpt using get_the_excerpt function.
You can specify excerpt length using length attribute. If not specified – default WordPress excerpt length used.
Example:

[frp_excerpt]

, [frp_excerpt length="15"]
Date [frp_date format=”F j, Y” time_since=”0″]
Displays post date. You can add format shortcode parameter to change date format. Read about format value here.
Add time_since parameter with 1 as value to display amount of elapsed time: 30 seconds ago, 5 minutes ago, 12 hours ago, 3 Jun.
Example:

[frp_date format="Y/m/d g:i:s A"]

,

[frp_date time_since="1"]

Link [frp_link]
Displays post permalink.
Example: read more
Featured image [frp_thumbnail size=”32×32″]
Displays featured post image. Add size shortcode parameter to change image size. You can define size using WIDTHxHEIGHT as value or size name (built-in or defined in theme).
Examples: [frp_thumbnail], [frp_thumbnail size="thumbnail"], [frp_thumbnail size="128x128"], [frp_thumbnail size="full"]
Author [frp_author link=”1″]
Displays name of the post’s author. Set link parameter to 0 if you want to disable link (author’s site) from author name.
Examples: [frp_author], [frp_author link="1"], [frp_author link="0"]
Comments [frp_comments no_text=”1″]
Displays the number of comments. Set no_text parameter to 1 if you want to disable comment text (just “23” instead of “23 Comments”).
Examples: [frp_comments], [frp_comments no_text="1"], [frp_comments no_text="0"]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon