The plugin contains two shortcodes, lorem and loremimage, the loremimage shortcode can be nested in the lorem shortcode.
評分
5
最近更新:
December 12, 2016
版本
1.3.3
活躍安裝總數
200
lorem shortcode

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.

Usage

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

[lorem]

  • 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

[loremimage]

The loremimage is created using http://dummyimage.com/, and hence the shortcode supports the same parameters as http://dummyimage.com/.

  • 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

Example

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

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

免費使用Creator方案
活躍安裝總數
200
目前已測試版本
4.7.29
此外掛程式已可供下載,並可用於你的 WordPress 自助託管安裝。