Title: Dummy Text Generator
Author: Md. Naeem Ahmed Opu
Published: <strong>2017 年 7 月 12 日</strong>
Last modified: 2026 年 5 月 14 日

---

搜索插件

![](https://ps.w.org/dummy-text-generator/assets/banner-772x250.png?rev=3532065)

![](https://ps.w.org/dummy-text-generator/assets/icon-128x128.png?rev=3532065)

# Dummy Text Generator

 作者：[Md. Naeem Ahmed Opu](https://profiles.wordpress.org/mnaopu/)

[下载](https://downloads.wordpress.org/plugin/dummy-text-generator.zip)

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

 [支持](https://wordpress.org/support/plugin/dummy-text-generator/)

## 描述

**Dummy Text Generator** is a lightweight WordPress plugin that lets you insert 
Lorem Ipsum placeholder text and dummy images into any post, page, or widget using
simple shortcodes.

Perfect for theme developers, designers, and content editors who need realistic-
looking placeholder content while building or testing a WordPress site.

**Features:**

 * 📝 Insert Lorem Ipsum paragraphs with `[dummy-text]`
 * 🔢 Control how many paragraphs to output with the `count` attribute
 * 🖼️ Insert responsive placeholder images with `[dummy-image]`
 * 📐 Set custom image width and height per shortcode
 * 🎨 Choose your preferred image service (Lorem Picsum, Via Placeholder, Placehold.
   co)
 * ⚙️ Configurable defaults via a clean Settings page (Settings  Dummy Text Generator)
 * 🧱 Output style option: plain paragraphs or HTML `<p>` tags

**Shortcodes:**

    ```
    [dummy-text]
    ```

Outputs the default number of Lorem Ipsum paragraphs (set in Settings).

    ```
    [dummy-text count="5"]
    ```

Outputs exactly 5 Lorem Ipsum paragraphs. Accepts any value from 1 to 20.

    ```
    [dummy-image]
    ```

Inserts a placeholder image at your default width and height.

    ```
    [dummy-image width="600" height="300"]
    ```

Inserts a placeholder image at a custom size.

    ```
    [dummy-image width="800" height="450" seed="42" alt="My placeholder" class="my-class"]
    ```

Full control: fixed photo seed (Picsum), custom alt text, and a CSS class.

**Image Services:**

 * **Lorem Picsum** _(default)_ — Beautiful real photography from picsum.photos
 * **Via Placeholder** — Simple solid-colour blocks from via.placeholder.com
 * **Placehold.co** — Clean labelled placeholders from placehold.co

## 安装

 1. Download the plugin zip file.
 2. Go to **Plugins  Add New  Upload Plugin** in your WordPress dashboard.
 3. Upload `dummy-text-generator.zip` and click **Install Now**.
 4. Click **Activate Plugin**.
 5. Go to **Settings  Dummy Text Generator** to configure your defaults.
 6. Add `[dummy-text]` or `[dummy-image]` to any post or page.

**Manual installation:**

 1. Upload the `dummy-text-generator` folder to `/wp-content/plugins/`.
 2. Activate the plugin via the **Plugins** menu in WordPress.

## 常见问题

### What shortcodes are available?

Two shortcodes are included:

 * `[dummy-text]` — inserts Lorem Ipsum text paragraphs
 * `[dummy-image]` — inserts a responsive placeholder image

### Can I control the number of paragraphs?

Yes. Use the `count` attribute: `[dummy-text count="4"]`. You can also set a global
default in **Settings  Dummy Text Generator**.

### Can I control the image size?

Yes. Use `width` and `height` attributes: `[dummy-image width="1200" height="600"]`.
Global defaults can be set in the plugin settings page.

### Which image services are supported?

Lorem Picsum (real photos), Via Placeholder (solid blocks), and Placehold.co (labelled
placeholders). Switch between them in the Settings page — no shortcode changes needed.

### Is this plugin compatible with the Block Editor (Gutenberg)?

Yes. Add a **Shortcode block** and paste in `[dummy-text]` or `[dummy-image]` — 
it works exactly the same as in the Classic Editor.

### Will this plugin slow down my site?

No. The plugin has no front-end scripts or stylesheets. All output is static HTML
generated at render time.

## 评价

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

### 󠀁[Does What It Says](https://wordpress.org/support/topic/does-what-it-says-1068/)󠁿

 [kenlyle](https://profiles.wordpress.org/kenlyle/) 2022 年 1 月 13 日

Generates more text than necessary. Would be great if the author could add some 
options for word count.

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

### 󠀁[Awesome!](https://wordpress.org/support/topic/awesome-6931/)󠁿

 [ferdousoly](https://profiles.wordpress.org/ferdousoly/) 2019 年 8 月 9 日

Very handy time-saving tool!

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/dummy-text-generator/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Md. Naeem Ahmed Opu ](https://profiles.wordpress.org/mnaopu/)

[帮助将「Dummy Text Generator」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/dummy-text-generator)

### 对开发感兴趣吗?

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

## 更新日志

#### 3.0

 * NEW: `[dummy-image]` shortcode with `width`, `height`, `seed`, `alt`, and `class`
   attributes
 * NEW: `count` attribute on `[dummy-text]` to control paragraph output
 * NEW: Support for three placeholder image services (Picsum, Via Placeholder, Placehold.
   co)
 * NEW: Text output style option — plain text or `<p>`-wrapped HTML
 * NEW: Admin Settings page (Settings  Dummy Text Generator) for global defaults
 * IMPROVED: Plugin structure hardened with `ABSPATH` check and input sanitisation

#### 2.2

 * Initial public release with basic `[dummy-text]` shortcode

## 额外信息

 *  版本 **3.0**
 *  最后更新：**4 周前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/dummy-text-generator/)
 * 标签
 * [dummy content](https://cn.wordpress.org/plugins/tags/dummy-content/)[dummy data](https://cn.wordpress.org/plugins/tags/dummy-data/)
   [dummy text](https://cn.wordpress.org/plugins/tags/dummy-text/)[generator](https://cn.wordpress.org/plugins/tags/generator/)
   [lorem ipsum](https://cn.wordpress.org/plugins/tags/lorem-ipsum/)
 *  [高级视图](https://cn.wordpress.org/plugins/dummy-text-generator/advanced/)

## 评级

 5 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/dummy-text-generator/reviews/#new-post)

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

## 贡献者

 *   [ Md. Naeem Ahmed Opu ](https://profiles.wordpress.org/mnaopu/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/dummy-text-generator/)

## 捐助

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

 [ 捐助此插件 ](https://paypal.me/mnaopu)