[WordPress] 外掛分享: Show Post Shortcode

前言介紹

  • 這款 WordPress 外掛「Show Post Shortcode」是 2009-05-06 上架。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2024-07-01,距離現在已有 307 天。
  • 外掛最低要求 WordPress 2.7 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

nirajshah-1 |

外掛標籤

list | posts |

內容簡介

這個簡單的短碼外掛程式允許您將文章列為有點列表,並連結到完整文章。您可以將列表限制為特定類別的文章,並選擇要顯示的文章數量。 order 和 orderby 選項也可讓您對列表進行排序。

使用起來很簡單。創建一個頁面或文章並使用代碼 [showposts category="2" num="4"],這將顯示類別 2 中的所有 4 篇文章。另一個示例 [showposts category="1" num="-1" orderby="date" order="DESC"] 顯示類別 1 中的所有文章按日期排序(最新文章為首)。

默認情況下,僅顯示 5 篇文章(除非您使用 num 選項),並按日期排序(從舊到新)。

範例

您可以在以下鏈接中看到代碼工作的兩個示例:

PS3 Firmware History

FAQs

使用方法

短碼是 [showposts]

您可以使用以下參數自定義顯示的內容(所有內容都是可選的):

[showposts category="2" num="4" order="DESC" orderby="date"]

將 order 設置為以下之一:

author - 按數字作者 ID 排序。
category - 按數字類別 ID 排序。
content - 按內容排序。
date - 按創建日期排序。
ID - 按數字文章 ID 排序。
menu_order - 按菜單順序排序。僅在頁面中有用。
mime_type - 按 MIME 類型排序。僅在附件中有用。
modified - 按上次修改日期排序。
name - 按捷徑排序。
parent - 按父 ID 排序。
password - 按密碼排序。
rand - 隨機排序結果。
status - 按狀態排序。
title - 按標題排序。

type - 按類型排序。

orderby 可以是以下之一:

DESC

ASC

原文外掛簡介

This simple shortcode plugin allows you to list posts as a bulleted list linking to the full article. You can limit
the list to posts from a specific category and you can select the number of posts to show. The order and
orderby options lets you sort the list too.
Usage is simple. Create a page or post and use the code [showposts category="2" num="4"] – this will show
all 4 posts from category 2. Another example [showposts category="1" num="-1" orderby="date" order="DESC"]
shows all the posts from category 1 ordered by the date (newest post first).
By default, only 5 posts are shown (unless you use the num option) and sorting in by date (oldest to newest).
Example
You can see two examples of the code working at the following links:

PS5 Firmware History

PS3 Firmware History

FAQs

Usage
The shortcode is [showposts]
You can use the following parameters to customize what is displayed (all are optional):
[showposts category="2" num="4" order="DESC" orderby="date"]

Set order to one of the following:

author – Sort by the numeric author IDs.
category – Sort by the numeric category IDs.
content – Sort by content.
date – Sort by creation date.
ID – Sort by numeric post ID.
menu_order – Sort by the menu order. Only useful with pages.
mime_type – Sort by MIME type. Only useful with attachments.
modified – Sort by last modified date.
name – Sort by stub.
parent – Sort by parent ID.
password – Sort by password.
rand – Randomly sort results.
status – Sort by status.
title – Sort by title.

type – Sort by type.
orderby can be one the following:

DESC

ASC

各版本下載點

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

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


0.1 | trunk |

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

  • List category posts 》List Category Posts 可以讓你透過使用 [catlist] 短碼在文章或頁面中按類別列出文章。在編輯頁面或文章時,直接插入短碼到文章中,文章就會被列出來。基本的...。
  • VK Link Target Controller 》外掛介紹, VK Link Target Controller 外掛可在最近文章列表或存檔頁面中,讓使用者點選文章標題時轉址到其他網頁而非文章內容頁面。, 使用範例, 假設你在 eB...。
  • WooCommerce Grid / List toggle 》WooCommerce Grid/List Toggle是一個簡單的外掛,可以在您的產品封面圖庫中添加一個網格/列表切換按鈕,允許使用者在您的WooCommerce商店的產品中切換網格/列...。
  • Link Library 》此外掛用於在您的網站上建立一個頁面,列出 WordPress 管理介面內的 "連結" 部分中所定義的所有連結分類及其內所包含的所有連結。使用者可以選擇是否顯示某些...。
  • Listo 》Listo 是一個簡單的 WordPress 外掛,可供其他外掛和主題使用常用的列表 (例如國家列表、國家的分區和貨幣列表)。Listo 也能夠根據定義的子組篩選列表項目。...。
  • Posts List 》這個 WordPress 外掛可以透過輸入簡碼 [posts-list],在網站上新增一個文章列表或頁面列表。, 第一個範例展示了如何以最簡單的形式添加文章列表。, [post...。
  • List categories 》這是一個簡單的外掛程式,可以透過簡碼在任何文章或頁面中顯示類別。它基本上是一個簡碼 API 介面,用於 WordPress 的 wp_list_categories 函數。這表示,根...。
  • User Avatar 》1.4.7 是一個安全修補,請更新您的外掛程式至最新版。, 這款外掛提供一個縮圖區域在您的個人資料部分,使用者可以透過疊層上傳和裁剪新圖像,裁剪完成後,新...。
  • Sub Categories Widget 》有時當你把 WordPress 的內容分成分類時,它最終會成為一兩個主要分類的子分類,這些主分類本身沒有任何內容。, 使用此小工具,即使父分類沒有任何文章,您也...。
  • Mail Subscribe List 》查看最新的 WordPress 優惠以用於您的網站。, 這是一個簡單的外掛,允許訪客在您的網站上輸入他們的姓名和電子郵件地址,然後訪客詳細信息將添加到訂閱者列表...。
  • Authors List 》使用簡碼簡單地顯示文章作者清單或網格,並帶有到其文章彙整頁面的連結。, 簡碼為 [authors_list],並接受以下屬性。, , style(1、2、3), columns (2、3、4...。
  • Improved Save Button 》本外掛將一個更新、更好用的「儲存」按鈕新增至文章編輯畫面,一次點擊即可儲存當前的文章並立即進入下一個動作。, (WordPress 5 相關資訊:請參見下文。),...。
  • WP Category Post List Widget 》WP Category Posts List 是一個 WordPress 小工具和 Shortcode 外掛,可以按類別篩選文章。, 它是建立在最新的 WP 小工具類別上,支援多個小工具實例。您可以...。
  • JS Archive List 》此外掛提供一個小工具和一個篩選器,使用 JS JS library 在側邊欄或文章中顯示可折疊的存檔列表。, 功能, , 顯示可折疊的存檔列表以減少空間使用。, 使用 JS ...。
  • Tweeple 》對於所有推客,這是適合您的外掛程式。當然,已經有數量繁多的 Twitter WordPress 外掛程式,但 Tweeple 可以給您更 ThemeBlvd 風格的解決方案。, 注意:此外...。

文章
Filter
Apply Filters
Mastodon