[WordPress] 外掛分享: OneSpace Last Post

前言介紹

  • 這款 WordPress 外掛「OneSpace Last Post」是 2013-05-21 上架。
  • 目前有 20 個安裝啟用數。
  • 上一次更新是 2014-09-05,距離現在已有 3894 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

igrossiter |

外掛標籤

post | latest posts |

內容簡介

此外掛會提供一個短碼,讓您可以選擇特定類別或文章類型並顯示最新的文章。您可以選擇要顯示多少篇文章以及要從文章中獲取哪些資訊。

引數:

id – 您可以透過逗號分隔的文章類別 ID 來使用
num – 每個文章類別要返回的文章數量
info – 印出的所有資訊都在這裡

列印資訊的引數:

thumb: 返回文章的特色圖片,您必須在 ‘:’ 後面指定縮圖的寬度,並且會有一個連結至文章的連結
title: 返回標題,並且會有一個連結至文章的連結
excerpt: 返回文章的前幾行,您可以指定文字的長度以及副標題。excerpt:LENGTH:SUB-TEXT,且會有一個連結至文章的連結
content: 返回文章的所有內容
date: 返回文章的發佈日期,您可以在 ‘:’ 後面指定格式

更多有關日期的訊息:

日期格式使用 PHP 的預設格式符號,以下是其中一些格式範例:

d:月份的第幾天
m:月份
y:年份

它有一些限制,例如您無法使用跳脫字元(目前不支援)。

查看完整列表請參閱手冊:http://php.net/manual/en/function.date.php

一些範例:

[os_lastpost id=”x,y,z” num=2 info=”title,date:d/m/y,thumb:130,excerpt:120: … veja mais”]

返回來自文章類別 x、y 和 z 的最新兩篇文章。設定日期格式為 Day/Month/Year,並使用寬度為 130 像素的特色圖片。從文章內容中選取 120 個字符並將 a 轉為省略號。並推出 “… 閱讀更多” 的自訂文字。

[os_lastpost post_type=”custom_post_type” num=5 info=”title,excerpt”]

返回最新的五篇自訂文章類型文章,並且印出標題以及文章內容的前 60 個字符。並推出預設文字 “... 繼續閱讀”。

[os_lastpost post_type=”post” num=5 info=”title,content”]

返回所有文章類別中最新的五篇文章,並印出文章標題以及內容的全部文本。

其他內容

原文外掛簡介

Veja descrição em portugues em: http://onespace.com.br/lastpost/
This plugin provides you with a shortcode that returns the latest posts from specifics categories or post_types, you can choose how many posts is to be show or what kind of information you can get from posts.
Arguments:

id – You can use any number of post categories ids separeted by commas
num – the number of posts to return for wich categorie id
info – this is where goes all the printing information

Info printing arguments:

thumb: returns the post’s featured image, you must specify the width of the thumb after ‘:’, has a link to the post
title: returns the title, has a link to the post
excerpt: returns the first lines from you post you can specify the lenght of the text to show and a subtext. excerpt:LENGTH:SUB-TEXT, has a link to the post
content: returns all content from post
date: returns date of post publishing, you can specify the format after ‘:’

More about date:
Date format uses php default formating symbols, here goes some of then;
d: day of month
m: month
y: year
it has some limitations, you can’t use escape chars (yet).
check the manual to see the complete list: http://php.net/manual/en/function.date.php
A few examples:
[os_lastpost id=”x,y,z” num=2 info=”title,date:d/m/y,thumb:130,excerpt:120: … veja mais”]
returns the latest 2 posts from post categories x, y and z, printing the date on Day/Month/Year, featured image 130 px of width, 120 chars from post content (html stripped) and a custom text ” … veja mais” at the end.
[os_lastpost post_type=”custom_post_type” num=5 info=”title,excerpt”]
returns the latest 5 posts from a custom post type, printing title, and the first 60 chars from the post content and a default text ” … read more”
[os_lastpost post_type=”post” num=5 info=”title,content”]
returns the latest 5 posts from all your categories, printing title, and full content
Arbitrary section

各版本下載點

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

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


0.2.0 |

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

  • PS Auto Sitemap 》PS Auto Sitemap 是一個 WordPress 外掛,自動從您的 WordPress 網站生成網站地圖頁面。, 對於初學者來說,安裝非常容易;對於專家來說,定制也非常容易。您...。
  • Post Type Switcher 》這個外掛在文章編輯介面中新增了一個簡單的文章型別下拉選單,讓你可以重新指派任何文章至新的文章型別。你可以在編輯文章時更換文章的型別。, 支援的型別, ...。
  • Post Duplicator 》這個外掛是用來製作選定文章的完全一模一樣複製。它支援自訂文章類型、自訂分類和自訂欄位。, *注意: 評論不會被複製到新文章。, 這個外掛的目的是為了快速且...。
  • Optimize Database after Deleting Revisions 》這個外掛是一個「一鍵式」WordPress資料庫清理/優化器。, 主要功能, , 刪除文章、頁面和/或自訂文章類型的修訂版本(您可以選擇保留最近的「X」個修訂版本,...。
  • Advanced Excerpt 》這個外掛可以改進 WordPress 原有的摘錄文章功能。, , 保留摘錄中的 HTML 標記,並可自選需要保留的標記, 按字元數或字數截斷摘錄, 只計算「真正的」文字(HT...。
  • Add From Server 》這個外掛提供有限的支援。請不要期望有太多新功能或修正 bug。功能可能隨時被移除。, Add From Server 外掛旨在幫助緩解不好的網站主機所造成的困擾,讓您可...。
  • Page and Post Clone 》這個外掛可以透過一個按鈕來複製貼文或頁面,現在您不必從零開始進行新頁面或貼文的樣式設計。, 這個外掛的主要功能包括:, , 建立一個頁面複本,保留所有內...。
  • WP Page Widget 》這款外掛讓小工具的選擇變得更加容易。啟用此外掛後,我們可以選擇要顯示在特定頁面/文章/自訂文章類型中的小工具。, 請注意,使用此外掛時必須啟用側邊欄主題。。
  • WP Total Hacks 》WP Total Hacks 可以在您的 WordPress 網站上自訂超過 20 個設置。, 此外掛已在 GitHub 上發布。, 一些功能:, 您可以選擇啟用或停用所有項目。, 需要 PHP5!...。
  • Revision Control 》**本外掛不提供支援。仍可使用,但請勿期待得到支援要求的回應或對「這無法運作」進行回應。**, Revision Control 是 WordPress 的一款外掛,可以讓使用者更...。
  • Reveal IDs 》WordPress 2.5版本發佈後,所有管理頁面的ID都被刪除了。這應該是因為普通用戶不需要它們。但對於高級WordPress用戶和開發人員來說,這些ID對某些外掛或模板...。
  • Bulk Delete 》Bulk Delete 是一個 WordPress 外掛,可以根據不同的條件和過濾器批次刪除文章、頁面、附件、使用者和元資料。此外掛支援以下條件和過濾器:, , 刪除文章, , ...。
  • WP Admin UI Customize 》, 儀表板, 顯示選項標籤, 輸出 - 元網站, 管理工具列 (Toolbar), 側邊選單 (Side menu), 元箱的管理, 登入畫面, 其他功能, , 這些自訂化都是可以實現的。, , ...。
  • Themify Portfolio Post 》Themify Portfolio Posts 是一個簡單的外掛,允許您展示乾淨版面的專案資訊。簡約而精美,您可以點擊您的圖庫專案的每張圖片,選擇顯示更多細節,例如專案類...。
  • Essential Content Types 》Essential Content Types 是一個 WordPress 外掛程式,讓您可以在您的網站上以不同的內容/文章類型展示出優秀的內容。這些內容/文章類型可能會被 WordPress ...。

文章
Filter
Apply Filters
Mastodon