이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

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

스크린샷

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

설치

Requirement

  • 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

Optional

Install the Shortcode UI plugin and activate it.

FAQ

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

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“lorem shortcode”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “lorem shortcode”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.3.3

  • Tested & found compatible with WP 4.7.

1.3.2

  • Fix bug in rand() max value

1.3.1

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

1.3.0

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

1.1.1

  • Tested with 3.9, bumped version number

1.1

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

1.0

  • initial release