Title: Category Posts Shortcode
Author: Punit Patel
Published: <strong>2023年8月13日</strong>
Last modified: 2023年10月31日

---

搜尋外掛

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

![](https://ps.w.org/category-posts-shortcode/assets/icon-256x256.png?rev=2952890)

# Category Posts Shortcode

 由[Punit Patel](https://profiles.wordpress.org/punitpatelofficial/)

[下載](https://downloads.wordpress.org/plugin/category-posts-shortcode.1.2.0.zip)

 * [詳情](https://zh-hk.wordpress.org/plugins/category-posts-shortcode/#description)
 * [評價](https://zh-hk.wordpress.org/plugins/category-posts-shortcode/#reviews)
 *  [安裝](https://zh-hk.wordpress.org/plugins/category-posts-shortcode/#installation)
 * [開發](https://zh-hk.wordpress.org/plugins/category-posts-shortcode/#developers)

 [支援](https://wordpress.org/support/plugin/category-posts-shortcode/)

## 描述

The Category Posts Shortcode plugin allows you to easily display a list of posts
within a specified category on your WordPress website. The plugin adds a new shortcode
that can be used within your posts, pages, or widgets. The list of posts is styled
to be visually appealing and responsive for various screen sizes.

To use the shortcode, simply add the following to your WordPress page or post editor,
replacing “your-category-slug” with the desired category slug:

[category_posts category=”your-category-slug”]

For Multiple Categories:

[category_posts category=”uncategorized”]
 [category_posts category=”blog”]

## 安裝

 1. Download the plugin files and upload the entire `category-posts-shortcode` folder
    to the `/wp-content/plugins/` directory of your WordPress installation.
 2. Activate the plugin through the ‘Plugins’ menu in the WordPress admin dashboard.
 3. Use the `[category_posts category="your-category-slug"]` shortcode in your WordPress
    pages, posts, or widgets, replacing “your-category-slug” with the desired category
    slug.

## 常見問題

### How can I change the styling of the posts list?

You can edit the `category-posts-shortcode.css` file located in the `css` folder
of the plugin directory. Make sure to clear your cache after making any changes 
to see the updated styles.

### Can I display multiple categories at once?

Currently, the plugin only supports displaying posts from a single category per 
shortcode. To display posts from multiple categories, you can add multiple shortcodes
with different category slugs.

## 評價

There are no reviews for this plugin.

## 貢獻者及開發者

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

貢獻者

 *   [ Punit Patel ](https://profiles.wordpress.org/punitpatelofficial/)

[將 Category Posts Shortcode 外掛本地化為台灣繁體中文版。](https://translate.wordpress.org/projects/wp-plugins/category-posts-shortcode)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/category-posts-shortcode/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/category-posts-shortcode/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/category-posts-shortcode/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/category-posts-shortcode/)。

## 修改日誌

#### 1.0.0

 * Initial release

## 其它

 *  Version **1.2.0**
 *  Last updated **3 年之前**
 *  Active installations **100+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **6.4.8**
 *  Language
 * [English (US)](https://wordpress.org/plugins/category-posts-shortcode/)
 * Tags
 * [category](https://zh-hk.wordpress.org/plugins/tags/category/)[posts](https://zh-hk.wordpress.org/plugins/tags/posts/)
   [shortcode](https://zh-hk.wordpress.org/plugins/tags/shortcode/)
 *  [進階顯示](https://zh-hk.wordpress.org/plugins/category-posts-shortcode/advanced/)

## 評分

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/category-posts-shortcode/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/category-posts-shortcode/reviews/)

## 貢獻者

 *   [ Punit Patel ](https://profiles.wordpress.org/punitpatelofficial/)

## 支援

有話想說？需要協助？

 [檢視支援論壇](https://wordpress.org/support/plugin/category-posts-shortcode/)