[WordPress] 外掛分享: Display Last Post(s)

前言介紹

  • 這款 WordPress 外掛「Display Last Post(s)」是 2010-05-26 上架。
  • 目前有 80 個安裝啟用數。
  • 上一次更新是 2010-05-28,距離現在已有 5753 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 1.5 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

fbarret |

外掛標籤

last | page | post | posts | shortcode |

內容簡介

Display Last Posts 是一款 WordPress 外掛,可讓您將最新文章顯示在部落格的任何位置。

官方網頁和法文翻譯:http://www.fb-graphic.com/bonus/display-last-posts-wordpress-plugin

有兩種使用方式:在 CMS 中在文章或頁面中使用短碼或在您的佈景主題模板中加入小的 PHP 代碼。

短碼:[last-posts] 或者 [last-posts nb=”5″ cont=”excerpt”]

PHP 代碼:<?php lastPosts(”,”); ?> 或者 <?php lastPosts(5,’excerpt’); ?>(刪除 < 和 ? 之間的空格)

短碼是:[last-posts]
默認情況下,僅顯示最新的文章,包括其全部內容。
可選參數,例如:[last-posts nb=”5″ cont=”excerpt”] - 使用 [nb] 可指定要顯示的文章數量(始終是最新的),使用 [cont=”excerpt”] 可指定僅顯示文章的節錄。

模板的 PHP 代碼是:<?php lastPosts(”,”); ?>
默認情況下,僅顯示最新的文章,包括其全部內容。
可選參數,例如:<?php lastPosts(5,’extrait’); ?> - 第一個參數指定要顯示的文章數量(始終是最新的),第二個參數指定僅顯示節錄。

Display Last Post(s) 是在這裡提供的 sc_liste() 函數的靈感來源:
http://www.webinventif.fr/wordpress-creation-de-shortcode-avance/

CSS 樣式

產生的代碼包含在一個

<div> 中,類名為 display-last-post (

<div class=”display-last-posts”>)。因此,您可以輕鬆地應用遠程 CSS。

錯誤報告 / 建議

您可以通過此處聯繫我:http://www.fb-graphic.com/fb-contact.php
請在標題中註明 [ Display Last Post ]。

捐贈連結

如果您願意捐款,請前往此處:http://www.fb-graphic.com/dons/
非常感謝!

許可證

版權所有 (c) 2010 Francois Barret < www.fb-graphic.com >

在符合以下條款的情況下,允許自由分發、使用和修改此源代碼:

必須保留本通知和整個許可證。
作者的名稱和網路引用(網址)必須無論源代碼的分發和修改方式如何,保持可見。

本軟件由作者“按原樣”提供,任何明示或暗示的保證,包括但不限於對特定用途的適銷性和適用性的暗示保證均被拒絕。在任何情況下,作者都不對任何直接、間接、偶然、特殊、懲罰性或後果性損害負責,包括但不限於替代商品或服務的購買、使用、數據或利潤損失或業務中斷,無論是因合同、嚴格責任或侵權行為(包括疏忽或其他)而引起的,即使被告知此類損害的可能性。

原文外掛簡介

Display Last Posts is a plugin that allows you to display the last post(s) (by default, the last one only) anywhere on your blog.
Official page and french translation : http://www.fb-graphic.com/bonus/display-last-posts-wordpress-plugin
Two ways are available: using a shortcode in posts or pages, within the CMS, or putting a small PHP code in a template of your theme.
shortcode : [last-posts] or [last-posts nb=”5″ cont=”excerpt”]
code PHP : < ?php lastPosts(”,”); ?> or < ?php lastPosts(5,’excerpt’); ?> (suppress space between < and ?) The shortcode is: [last-posts] By default, only the last post is displayed, with its whole content. Optional arguments, ex.: [last-posts nb=”5″ cont=”excerpt”] – with [nb] you specify the quantity of posts you want to display (always newest first), and with [cont=”excerpt”] you specify that only the excerpt of the posts will be displayed. The PHP code for templates is: < ?php lastPosts(”,”); ?>
By default, only the last post is displayed, with its whole content.
Optional arguments, ex.: < ?php lastPosts(5,’extrait’); ?> – the first argument specify the number of posts to display (always newest first), and the second one specify that only the excerpt must be displayed.
Display Last Post(s) is widely inspired by the sc_liste() function given here:
http://www.webinventif.fr/wordpress-creation-de-shortcode-avance/
CSS styling
The code produced is included in a
< div> with class=”display-last-post” (
< div class=”display-last-posts”>). You can then easily apply a remote CSS.
Bug Reports / Suggestions
You can contact me here: http://www.fb-graphic.com/fb-contact.php
Thanks to specify [ Display Last Post ] in the title.
Donate Link
If you wish to donate, please go there: http://www.fb-graphic.com/dons/
Thanks!
License
copyright (c) 2010 Francois Barret < www.fb-graphic.com >
The free distribution, use and modification of this source are permitted provided they meet the following clauses:

This entire notice and the entire license must be preserved.
The name and internet references (web adresses) of the author must stay visible whatever the mode of distribution and modification of the source.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Display Last Post(s)」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • WP Shortcodes Plugin — Shortcodes Ultimate 》Shortcodes Ultimate 是一個全面的視覺與功能性元素收集,您可以在文章編輯器、文字小工具甚至是範本檔案中使用。使用 Shortcodes Ultimate,您可以輕鬆地建...。
  • MW WP Form 》MW WP Form 可以使用 shortcode 創建帶有確認畫面的郵件表單。, , 使用 shortcode 創建表單, 可以使用確認頁面。, 頁面可以使用相同的 URL 或個別的 URL 進行...。
  • Shortcoder — Create Shortcodes for Anything 》Shortcoder 外掛可讓您建立 HTML、JavaScript、CSS 和其他代碼片段的自訂捷徑。現在,這些捷徑可以在文章/頁面中使用,並且該片段將取代其位置。, ✍ 輕鬆建立...。
  • Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。
  • Display Posts – Easy lists, grids, navigation, and more 》Display Posts 讓您輕鬆地列出網站上的所有內容。首先在內容編輯器中新增此短碼,以列出最近的文章清單:, [display-posts], , 按類別篩選, 若只想顯示特定類...。
  • amr shortcode any widget 》使用shortcode將小工具或多個小工具或整個小工具區域(側邊欄)插入到頁面中。, 首先在正常的側邊欄中設置小工具。 檢查它是否正常運作。, 然後將所選小工具...。
  • Column Shortcodes 》此外掛提供簡單易用的短碼,在您的文章或頁面中輕鬆創建欄位。有時候,您只需要將網頁切成不同的欄位。使用此外掛,您只需選擇一個欄位的短碼,便可將欄位加...。
  • Shortcode in Menus 》此外掛讓你可以在 WordPress 導覽選單中使用簡碼,以便可以動態生成連結。也可以讓你在導覽選單中添加完整的 HTML 段落。, 使用方法, 查看截圖。, 另外,查看...。
  • Sidebar Widgets by CodeLights 》❗ 很抱歉,由於 SiteOrigin 的 widgets API 完全更改,CodeLights 不再支援 SiteOrigin Page Builder 的原生使用。解決方案:您仍然可以在純文字編輯器中創...。
  • Insert Pages 》Insert Pages 可讓您使用 Shortcode API,將任何 WordPress 內容(例如,頁面、文章、自訂文章類型)嵌入其他 WordPress 內容。它還包括一個小工具,可將頁面...。
  • Advanced iFrame 》看起來您正在尋找一個 WordPress 外掛 - Advanced iFrame Pro。這個外掛可讓您使用 iframe 包含其他網頁到您的網站中,同時具有隱藏和修改元素、自動調整高度...。
  • Shortcodes by Angie Makes 》Shortcodes by Angie Makes 外掛為您的 WordPress 主題新增一系列易於使用的短碼,這些短碼與 Angie Makes WordPress 主題 完美搭配。, 範例, 請到此查看這些...。
  • Forget About Shortcode Buttons 》相容於 WordPress 傳統編輯器,Gutenberg 整合即將推出🙂, 歡迎提出功能需求/建議!, 即忘短碼(FASC)按鈕是在所見即所得編輯器中及網站佈景主題中加入 CSS 按...。
  • The Events Calendar Shortcode & Block 》標籤內容:, , 使用 The Events Calendar Shortcode 和 Block,在需要顯示活動的地方顯示可自定義的活動列表!此外掛程式完全整合了現代部落客 (Modern Tribe...。
  • Team Members 》這個外掛會為管理員面板增加一個「團隊」區塊,讓您可以輕鬆地在網站上展示您的員工/職員。您可以快速地將成員加入您的團隊,加入他們的照片、職位、個人簡介...。

文章
Filter
Mastodon