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

首頁外掛目錄 › Display Last Post(s)
70+
安裝啟用
★★★★★
5/5 分(1 則評價)
5819 天前
最後更新
問題解決
WordPress 1.5+ v1.0 上架:2010-05-26

內容簡介

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 >

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

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

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

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Display Last Post(s)」→ 直接安裝(推薦)

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Mastodon