Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

lorem shortcode

Mô tả

The plugin contains two shortcodes, [lorem] and [loremimage], the [loremimage] shortcode can be nested in the [lorem] shortcode. The shortcodes generates dummy text and image when needed.


Add the [lorem] and/or [loremimage] shortcode to a post or page, or if the Shortcode UI plugin is installed and activated, in the visual editor, click Add Media->Insert Post Element->Lorem Ipsum to add the shortcode.

Parameters, all are optional


  • p=”3″ Number of paragraphs. Default is 5
  • l=”7″, Number of lines per paragraph. Default is 3
  • align=”right” This tells how you’d like to allign a nested shortcode. There are two alternatives, left or right. Default is right


The loremimage is created using, and hence the shortcode supports the same parameters as

  • size=”400×400″ Image size. Default is 300×200
  • text=”lorem ipsum” Default is empty
  • fgcolor=”fff” Image foreground color. Default is “ccc”
  • bgcolor=”ccc” Image foreground color. Default is “eee”
  • format=”png”, Image format. Default is “png”

I’ve added two additional parameters/values

  • size=”thumb” This will create a thumbnail, size based on your WordPress image settings. The thumb links to another image and support Lightbox et al (has attribute rel="lightbox[lorem]").
  • style=”padding:5px;” Adds a style to the loremimage. Default is empty


[lorem p="1" l="20"]
    [loremimage size="300x300" style="padding:5px;"]

For more information and screenshots, please see the plugin home page

Ảnh màn hình

  • Using Shortcode UI, insert [lorem] shortcode.
  • Using Shortcode UI, edit existing [lorem] shortcode.

Cài đặt


  • PHP: 5.2.x or newer

Manual Installation

  • Upload the files to wp-content/plugins/lorem-shortcode/
  • Activate the plugin

Automatic Installation

  • On your WordPress blog, open the Dashboard
  • Go to Plugins->Install New
  • Search for “lorem shortcode”
  • Click on install to install the lorem shortcode


Install the Shortcode UI plugin and activate it.

Hỏi đáp

Where’s the Shortcode UI?

You need to install the Shortcode UI plugin. When the Shortcode UI plugin is installed and activated, in the visual editor, click Add Media->Insert Post Element->Lorem Ipsum to add the shortcode.

What are shortcodes?

Shortcode, a “shortcut to code”, makes it easy to add funtionality to a page or post. When a page with a shortcode is saved, WordPress execute the linked code and embedds the output in the page.

Writing your own shortcode plugin

Đánh giá

There are no reviews for this plugin.

Người đóng góp & Lập trình viên

“lorem shortcode” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

Nhật ký thay đổi


  • Tested & found compatible with WP 4.7.


  • Fix bug in rand() max value


  • Remove extract() blush
  • Tested & found compatible with WP 4.6.


  • Update plugin to WPCS standards. Update Shortcode UI support.
  • Remove old Shortcode UI files
  • Add .pot language file


  • Tested with 3.9, bumped version number


  • Added support for embedded shortcodes and added the [loremimage] short code. The [loremimage] can be used by itself. The image is created using


  • initial release