這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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″]

安裝

  1. Upload the “recent-posts-easy” folder to the “/wp-content/plugins/” directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.

常見問題

How do I customize the output of the shortcode?

You can customize the output by adding attributes to the shortcode. See the “Usage” section for a list of available attributes.

Can I use this shortcode in a widget or a theme file?

Yes, you can use the do_shortcode() function to embed the shortcode in a widget or a theme file. For example, you could use the following code in a widget or a template file:

評價

There are no reviews for this plugin.

貢獻者及開發者

“Recent Posts Easy” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Recent Posts Easy 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

Initial release.