[WordPress] 外掛分享: Recent Posts Easy

首頁外掛目錄 › Recent Posts Easy
WordPress 外掛 Recent Posts Easy 的封面圖片
全新外掛
安裝啟用
尚無評分
567 天前
最後更新
問題解決
WordPress 4.0+ v1.1 上架:2023-03-03

內容簡介

「Recent Posts Easy」外掛提供了一個簡單的短代碼,可在您的 WordPress 網站上顯示帶縮略圖和摘要說明的最新文章。

短代碼接受幾個屬性,讓您可以自定義輸出,包括要顯示的文章數、圖片大小、文章類型、類別、排序順序和摘要描述的最大長度。

要使用短代碼,只需將下列代碼添加到任何頁面或文章中:

[recent-posts]

您也可以通過添加屬性來自定義短代碼,如下:

[recent-posts limit=”10″ image_size=”medium” post_type=”page” category=”news” order=”ASC” meta_limit=”30″]

要了解更多關於此外掛及其功能的信息,請訪問我們的外掛頁面。

用法

要使用短代碼,只需將下列代碼添加到任何頁面或文章中:

[recent-posts]

這將顯示帶有縮略圖和摘要說明的最新5篇文章。

您也可以通過添加屬性來自定義短代碼。以下是可用的屬性:

limit – 最多顯示的文章數(默認為5)
image_size – 縮略圖圖像的大小(默認為「縮略圖」)
post_type – 要顯示的文章類型(默認為「文章」)
category – 要顯示的類別(默認為空)
order – 文章的排序順序(默認為「DESC」)

meta_limit – 摘要描述的最大長度(默認為15)
例如,要顯示「新聞」類別中最新10個頁面相關的文章,帶有中型縮略圖和較長的摘要描述,您需要使用以下短碼:

[recent-posts limit=”10″ image_size=”medium” post_type=”page” category=”news” order=”ASC” meta_limit=”30″]

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Recent Posts Easy」→ 直接安裝(推薦)

原文外掛簡介

The “Recent Posts Easy” plugin provides a simple shortcode for displaying recent posts with thumbnails and meta descriptions on your WordPress site.
The shortcode accepts several attributes that allow you to customize the output, including the number of posts to display, the image size, the post type, the category, the sort order, and the maximum length of the meta description.
To use the shortcode, simply add the following code to any page or post:
[recent-posts]

You can also customize the shortcode by adding attributes, like this:
[recent-posts limit=”10″ image_size=”medium” post_type=”page” category=”news” order=”ASC” meta_limit=”30″]
To learn more about this plugin and its features, please visit our plugin page.
Usage
To use the shortcode, simply add the following code to any page or post:
[recent-posts]

This will display the 5 most recent posts with thumbnails and meta descriptions.
You can also customize the shortcode by adding attributes. Here are the available attributes:

limit – The maximum number of posts to display (default is 5)
image_size – The size of the thumbnail image (default is “thumbnail”)
post_type – The post type to display (default is “post”)
category – The category to display (default is empty)
order – The sort order of the posts (default is “DESC”)

meta_limit – The maximum length of the meta description (default is 15)
For example, to display the 10 most recent pages in the “news” category with medium-sized thumbnails and longer meta descriptions, you would use the following shortcode:
[recent-posts limit=”10″ image_size=”medium” post_type=”page” category=”news” order=”ASC” meta_limit=”30″]

延伸相關外掛

文章
Filter
Mastodon