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

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/category-posts-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/category-posts-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/category-posts-shortcode/#installation)
 * [开发进展](https://cn.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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「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

## 额外信息

 *  版本 **1.2.0**
 *  最后更新：**3 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/category-posts-shortcode/)
 * 标签
 * [category](https://cn.wordpress.org/plugins/tags/category/)[posts](https://cn.wordpress.org/plugins/tags/posts/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/category-posts-shortcode/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/category-posts-shortcode/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/category-posts-shortcode/)