Title: WP Lipsum
Author: dylanized
Published: <strong>2012 年 5 月 2 日</strong>
Last modified: 2012 年 5 月 7 日

---

搜索插件

![](https://ps.w.org/wp-lipsum/assets/banner-772x250.png?rev=539201)

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

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

# WP Lipsum

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

[下载](https://downloads.wordpress.org/plugin/wp-lipsum.zip)

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

 [支持](https://wordpress.org/support/plugin/wp-lipsum/)

## 描述

WP-Lipsum includes a collection of template fragments representing lots of common
page types, from simple lorem ipsum paragraphs to demos of the WP comment system,
and more. It works via a simple shortcode or template tag.

#### Using the Shortcode

    ```
    [lipsum]
    ```

This outputs the basic content block. You can edit this in wp-lipsum/templates/basic.
php.

    ```
    [lipsum template=aux]
    ```

This outputs the auxilary lipsum page, with tables, definition lists, and more. 
You can edit this in templates/aux.php.

    ```
    [lipsum repeat=4]
    ```

This outputs 4 simple paragphs of lorem ipsum text. You can edit the text in templates/
p.php.

    ```
    [lipsum template=ol repeat=3]
    ```

This loads the ordered list template and displays it 3 times.

    ```
    [lipsum t=ol r=3]
    ```

You can also use “t” and “r” as parameter shortcuts.

#### Lipsum Templates and Fragments

Here are the full pages of lipsum content available:

 * Basic Content – “basic”
 * Aux Content – “aux”
 * Blog Demo – “blog”
 * Single Post Demo – “single”
 * Headline List – “headline_list”
 * Gallery Demo – “gallery”
 * Portfolio Demo – “portfolio”
 * Long Header Examples – “long_headers”
 * Short Content Demo – “short”
 * Template Fragments

You can also call these smaller fragments, and use the “repeat” parameter:

 * Single Paragraph – “p”
 * Unordered List – “ul”
 * Ordered List – “ol”
 * Definition List – “dl”
 * Table Example – “table”
 * Blockquote – “blockquote”
 * Blog Teaser – “blog_teaser”
 * Image (without caption) – “img”
 * Image with WP Caption – “caption”
 * Code Demo – “code”
 * Comments Demo – “comments”
 * Gallery Item – “gallery_item”
 * List of Headers – “headers”
 * Headline Teaser – “headline_teaser”
 * Misc Content – “misc”
 * Portfolio Item – “portfolio_item”

All lipsum template snippets are located in plugins/wp-lipsum/templates. You can
easily add new template files in here, and call them with the “template” attribute.

Templates use Bedrock conventions, including class names (like .table-style and .
post-nav), using H1s and H2s only for titles, and other concepts.

#### Image Dimensions

For the image templates, you can also pass in custom dimensions with the “width”,“
height” and “align” parameters (shorcuts w, h and a). This works for the img, caption,
portfolio & portfolio_item, and gallery & gallery_item templates.

    ```
    [lipsum template=img width=300 height=150]

    [lipsum t=caption w=300 h=150 a=right]

    [lipsum t=gallery w=500 h=220]

    [lipsum t=portfolio w=100 h=100]
    ```

Align can be set to “left”, “right”, “center” or “none”. These parameters default
to 200×200, and alignleft.

#### Using the Template Tag

You can also call the plugin from your theme code, by using the display_lipsum_template()
function:

    ```
    <?php display_lipsum_template($template, $repeat); ?>
    <?php display_lipsum_template('basic') ?>
    <?php display_lipsum_template('table', 4) ?>
    <?php display_lipsum_template('caption', 1, 500, 300, 'right') ?>
    ```

#### More Info

[View the WP-Lipsum homepage here](http://bedrocktheme.com/wp-lipsum/)

WP-Lipsum is a part of the Bedrock mini-framework, more info at [bedrocktheme.com](http://bedrocktheme.com/)

Follow me at [dylanized.com](http://dylanized.com/) and [@dylanized](http://twitter.com/dylanized)

## 屏幕截图

[⌊The "basic" template⌉⌊The "basic" template⌉[

The “basic” template

[⌊The "aux" template⌉⌊The "aux" template⌉[

The “aux” template

[⌊The "blog" template⌉⌊The "blog" template⌉[

The “blog” template

## 安装

 1. Upload the “wp-lipsum” folder to the “/wp-content/plugins/” directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Now you can use the shortcodes and the template tag

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「WP Lipsum」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-lipsum)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.4

 * Added image dimensions and alignment parameters, and the img template

#### 1.3

 * Added “t” and “r” shortcuts, submitted to WP Directory

#### 1.2

 * Added lots more templates and changed paramters to “template” and “repeat”

#### 1.1

 * Fixed a bug

#### 1.0

First version, just had a couple templates

## 额外信息

 *  版本 **1.4**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.3.2 或更高版本 **
 *  已测试的最高版本为 **3.3.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-lipsum/)
 * 标签
 * [dummy text](https://cn.wordpress.org/plugins/tags/dummy-text/)[lipsum](https://cn.wordpress.org/plugins/tags/lipsum/)
   [lorem ipsum](https://cn.wordpress.org/plugins/tags/lorem-ipsum/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-lipsum/advanced/)

## 评级

 1 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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