Title: Post Grid Shortcode
Author: devnahin
Published: <strong>2024 年 12 月 9 日</strong>
Last modified: 2024 年 12 月 9 日

---

搜索插件

![](https://ps.w.org/post-grid-shortcode/assets/banner-772x250.png?rev=3204927)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/post-grid-shortcode/assets/icon-256x256.png?rev=3204932)

# Post Grid Shortcode

 作者：[devnahin](https://profiles.wordpress.org/devnahin/)

[下载](https://downloads.wordpress.org/plugin/post-grid-shortcode.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/post-grid-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/post-grid-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/post-grid-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/post-grid-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/post-grid-shortcode/)

## 描述

The **Post Grid Shortcode** plugin allows you to create a responsive grid of posts
anywhere on your site using a simple shortcode. It provides several options to control
how the posts are displayed, including the number of posts, order, post types, and
the option to show featured images and excerpts.

**Features include:**
 – Customizable grid of posts – Control over the number of
posts to display – Choose post type, order, and post status – Display featured images
and excerpts – Option to add a “Read More” button with customizable text

Use the `[post-grid]` shortcode in any post, page, or widget to display a grid of
posts.

### License & Warranty

This plugin is licensed under the GPLv2 or later. You are free to use, modify, and
distribute it as long as you comply with the terms of the GPLv2 license.

### Credits

Post Grid Shortcode was developed by devnahin. If you enjoy using this plugin, consider
supporting us by donating via our [donation page](https://buymeacoffee.com/devnahin).

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/post-grid-shortcode` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Navigate to “Settings” > “Post Grid Shortcode” to configure your options.
 4. Add the `[post-grid]` shortcode to any post or page where you want the post grid
    to appear.

## 常见问题

### How do I use the shortcode?

Simply add `[post-grid]` in any post, page, or widget. You can customize the display
by using the following attributes:

 * `posts_per_page`: (int) Number of posts to display. Default is 5.
 * `orderby`: (string) How to order the posts (e.g., date, title). Default is ‘date’.
 * `order`: (string) Ascending (‘ASC’) or Descending (‘DESC’). Default is ‘ASC’.
 * `post_type`: (string) Type of posts to display (e.g., ‘post’, ‘page’). Default
   is ‘post’.
 * `post_status`: (string) Status of posts to display (e.g., ‘publish’, ‘draft’).
   Default is ‘publish’.
 * `show_featured_image`: (bool) Whether to show featured images. Default is true.
 * `excerpt_length`: (int) Number of words in the post excerpt. Default is 20.
 * `enable_read_more_button`: (bool) Show a “Read More” button. Default is false.
 * `read_more_text`: (string) Customize the “Read More” button text. Default is “
   Read More”.

Example usage:
 [post-grid posts_per_page=”3″ orderby=”title” order=”DESC” show_featured_image
=”1″]

### Where do I configure the options for the plugin?

Go to “Settings” > “Post Grid Shortcode” in the WordPress admin dashboard.

### Can I use this with custom post types?

Yes, you can specify the `post_type` attribute in the shortcode to display custom
post types. For example:
 [post-grid post_type=”product”]

## 评价

![](https://secure.gravatar.com/avatar/6b3e91fc438d28cbdefc9834350f0464a11bcbbef6e475c3c4b4a1f7975a0d5b?
s=60&d=retro&r=g)

### 󠀁[Flexible and Easy-to-Use Post Grid Plugin](https://wordpress.org/support/topic/flexible-and-easy-to-use-post-grid-plugin/)󠁿

 [standevis](https://profiles.wordpress.org/standevis/) 2024 年 12 月 9 日

The Post Grid Shortcode plugin is an excellent plugin for anyone looking to display
any custom posts in a grid layout on their WordPress site. It’s very user-friendly
and comes with a variety of customizable options. I love that you can control the
number of posts, post types, and even the order in which they appear.Thank you so
very much

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/post-grid-shortcode/reviews/)

## 贡献者及开发者

「Post Grid Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ devnahin ](https://profiles.wordpress.org/devnahin/)

[帮助将「Post Grid Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/post-grid-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/post-grid-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/post-grid-shortcode/)，或通过[RSS](https://plugins.trac.wordpress.org/log/post-grid-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/post-grid-shortcode/)。

## 更新日志

#### 1.0.0

 * Initial release of Post Grid Shortcode.
 * Basic settings for post grid display and shortcode attributes.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**1 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/post-grid-shortcode/)
 * 标签
 * [featured image](https://cn.wordpress.org/plugins/tags/featured-image/)[grid](https://cn.wordpress.org/plugins/tags/grid/)
   [post grid](https://cn.wordpress.org/plugins/tags/post-grid/)[posts](https://cn.wordpress.org/plugins/tags/posts/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/post-grid-shortcode/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/post-grid-shortcode/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/post-grid-shortcode/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/post-grid-shortcode/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/post-grid-shortcode/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/post-grid-shortcode/reviews/?filter=1)

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

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

## 贡献者

 *   [ devnahin ](https://profiles.wordpress.org/devnahin/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://buymeacoffee.com/devnahin)