Title: Page Shortcodes Plugin
Author: dflydev
Published: <strong>2010 年 9 月 12 日</strong>
Last modified: 2010 年 9 月 12 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/page-shortcodes.svg)

# Page Shortcodes Plugin

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

[下载](https://downloads.wordpress.org/plugin/page-shortcodes.0.1.zip)

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

 [支持](https://wordpress.org/support/plugin/page-shortcodes/)

## 描述

Follow here: [Page Shortcodes](http://dflydev.com/d2code/wordpress/page-shortcodes-plugin/)

Embed page lists and other page information in pages and posts by way of
 several
shortcodes.

    ```
    <h3>[page_title name=my-page-slug]</h3>
    [page_list name=my-page-slug]
    ```

#### Shortcodes

The available shortcodes are:

 1. [page_list]
 2. [page_title]
 3. [page_content]
 4. [page_meta]
 5. [page_permalink]

#### Common attributes

For all shortcodes, the “name” or “id” attributes must be specified.

 * “name” is the slug name for the pathed page. If your page is /foo/bar/baz,
    then
   specify name as ‘foo/bar/baz’.
 * “id” is the ID for the page.

#### [page_list] attributes

 1. “template” attribute
 2.  * The name of the template to use for this page list.

#### [page_meta] attributes

 1. “template” attribute
 2.  * The name of the template to use for this page meta.
 3. “meta” attribute
 4.  * The name of the meta field to include.

## 屏幕截图

 * [[
 * Editing a page to include content by way of the page shortcodes plugin.
 * [[
 * Rendering of the previously shown page snippet.

## 安装

 1. Download the plugin zip file
 2. Unzip contents of plugin zip file
 3. Upload the page-shortcodes directory to the `/wp-content/plugins/` directory
 4. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

  Can I customize how the page list looks?

Yes. Create a `ps-page-list.php` template in your theme.

  Can I create a custom template for page lists?

Yes. Give a `template` attribute to your page list shortcode to specify which
 page
list template to use.

    ```
    [page_list name=my-page-slug template=my-custom-page-list]
    ```

  Can I customize how the page meta is displayed?

Yes. Create a `psp-page-meta.php` template in your theme.

  Can I create a custom template for page metas?

Yes. Give a `template` attribute to your page meta shortcode to specify
 which page
meta template to use.

    ```
    [page_meta name=my-page-slug meta=some.meta.key template=my-custom-page-meta]
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

「Page Shortcodes Plugin」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Page Shortcodes Plugin」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/page-shortcodes)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.1

 * First release.

## 额外信息

 *  版本 **0.1**
 *  最后更新：**16 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 2.8.6 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/page-shortcodes/)
 * 标签
 * [page](https://cn.wordpress.org/plugins/tags/page/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [shortcodes](https://cn.wordpress.org/plugins/tags/shortcodes/)
 *  [高级视图](https://cn.wordpress.org/plugins/page-shortcodes/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/page-shortcodes/)

## 捐助

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

 [ 捐助此插件 ](http://dflydev.com/d2code/wordpress/page-shortcodes-plugin/)