Title: Custom Post Type List Shortcode
Author: Blackbird Interactive
Published: <strong>2011 年 7 月 7 日</strong>
Last modified: 2014 年 12 月 10 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/custom-post-type-list-shortcode.svg)

# Custom Post Type List Shortcode

 作者：[Blackbird Interactive](https://profiles.wordpress.org/blackbird-interactive/)

[下载](https://downloads.wordpress.org/plugin/custom-post-type-list-shortcode.1.4.4.zip)

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

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

## 描述

UPGRADE AT YOUR OWN RISK: We’ve added a legacy feature to the plugin which has been
tested and is working on our local WordPress install. However, every environment
is different, if you run into problem please visit http://blackbirdi.com/blog for
support.

When used with Custom Post Type UI plug-in (https://wordpress.org/extend/plugins/
custom-post-type-ui/) and Advanced Custom Fields plug-in (https://wordpress.org/
extend/plugins/advanced-custom-fields/), you can easily list all of the posts within
a post-type and sort by regular or custom fields.

Updated and tested on latest version of WordPress (4.0)

Most updates are because of users responding with requests. If you feel there is
something that you would like to see in the plugin visit our site and post a comment.

Enjoy!
 You can find documentation for the CPT_List @ (http://blackbirdi.com/blog/)

## 屏幕截图

 * [[
 * Use of the shortcode with some options in a page content area
 * [[
 * Custom post-type driven gallery after some jQuery and CSS.

## 安装

 1. Upload `cpt_shortcode` directory to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Place shortcode `[cpt_list]` (see our site for documentation http://blackbirdi.
    com/blog ) in any content area/page that allows shortcode.

## 常见问题

  Do I have to use Custom Post-types?

You do not have to use custom post-types, Custom Post Type List Shortcode pulls `
posts` by default, but the real power of this plugin lies in the use of custom post-
types.

  Is there paging?

Paging is not supported in this version, though it is planned for a future release.

  What can I do with this plugin

You can easily create a list of any specified custom post-type in any content area
that allows shortcode to be executed. Some examples of use are:
 1. Custom image
gallery managed via `gallery` custom post-type. 2. Resturant menu page, menu items
managed via `menu` custom post-type 3. Show schedule listing, where shows are managed
via `shows` custom post-type. 4. Employee directory with names/photos/info, managed
via `employees` custom post-type.

## 评价

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

### 󠀁[Thanks for such a useful plugin](https://wordpress.org/support/topic/thanks-for-such-a-useful-plugin/)󠁿

 [DEP Tech](https://profiles.wordpress.org/dep-tech/) 2016 年 9 月 3 日

Well done!

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

### 󠀁[Finally something that works!](https://wordpress.org/support/topic/finally-something-that-works-7/)󠁿

 [grAPPfruit](https://profiles.wordpress.org/grappfruit/) 2016 年 9 月 3 日

Consider moving the documentation from your blog here please

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/custom-post-type-list-shortcode/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Blackbird Interactive ](https://profiles.wordpress.org/blackbird-interactive/)
 *   [ Justin Greer ](https://profiles.wordpress.org/justingreerbbi/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.4.4

 * Checked and ensured that the code worked on latest WP install.
 * Updated directory structure of plugin. Nothing major added/removed or tweaked
   code wise.

#### 1.4.3

 * Added legacy mode to make it support older installtions as well
 * Added inline styles for images to keep themes from overiding the thumbnail sizes
 * Added support for over under layout( Traditionally the plugin supported only 
   side by side content )
 * Wrapped content and images in class’s for easier modification with CSS
 * Minor cleanup based on user submittions at our blog http://blackbirdi.com/blog

#### 1.4.2

 * Added `filter_content` tag which allows for other plugins to hook into the plugin
 * Added support for ordering by custom fields. `meta_key`

#### 1.4.1

 * Added check for show date to rid the empty H3 tags

#### 1.4.0

 * Added more taxonomy features – Special thanks: Chris Sigler
 * Removed bulky documentation from admin area

#### 1.3.9

 * Fixed typo’s
 * Added support for Taxonomies
 * Cleaned house some for future additions

#### 1.3.8

 * Fixed typo’s

#### 1.3.5

 * Added menu in the admin panel contianing documentation and information.
 * Added new Arguments: show_date, images_only, imgaes_only_num, excerpt_only
 * Added Donation button
 * Fixed category bug

#### 1.3.4

 * Fixed boolean checks that were bugs when users input “false” for an option
 * Major bug-fixes

#### 1.3.3

 * Added a `div` with class of `cpt_item_entry_content` around the entry content
   of each cpt item

#### 1.3.2

 * Added new Argument: `wrap_with`
 * Minor bug-fixes

#### 1.3.1

 * Added new Arguments: `thumb_link`, `thumb_height`, `thumb_width`
 * Minor bug-fixes

#### 1.3

 * Added new Arguments: `category`, `use_single_blocks`, `title_links`, `link_to_file`,`
   attachment`, `show_thumbs`, `show_post_content`, `read_more_link`, `list_title`,`
   file_extension`
 * Changed Loop Structure
 * Added New Classes

#### 1.0

 * Initial build

## 额外信息

 *  版本 **1.4.4**
 *  最后更新：**11 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.0.38**
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-post-type-list-shortcode/)
 * 标签
 * [cpt](https://cn.wordpress.org/plugins/tags/cpt/)[custom post type](https://cn.wordpress.org/plugins/tags/custom-post-type/)
   [post list](https://cn.wordpress.org/plugins/tags/post-list/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-post-type-list-shortcode/advanced/)

## 评级

 4.6 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Blackbird Interactive ](https://profiles.wordpress.org/blackbird-interactive/)
 *   [ Justin Greer ](https://profiles.wordpress.org/justingreerbbi/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://blackbirdi.com/donate/)