Title: lorem shortcode
Author: Per Søderlind
Published: <strong>3 de Decembro, 2010</strong>
Last modified: 12 de Decembro, 2016

---

Buscar plugins

![](https://ps.w.org/lorem-shortcode/assets/banner-772x250.png?rev=487681)

Este plugin **non se actualizou en máis de 2 anos**. É posible que xa non sexa compatible
ou mantido por ninguén, ou podes ter problemas de compatibilidade cando se usa con
novas versións de WordPress.

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

# lorem shortcode

 Por [Per Søderlind](https://profiles.wordpress.org/pers/)

[Descargar](https://downloads.wordpress.org/plugin/lorem-shortcode.1.3.3.zip)

 * [Detalles](https://gl.wordpress.org/plugins/lorem-shortcode/#description)
 * [Valoracións](https://gl.wordpress.org/plugins/lorem-shortcode/#reviews)
 *  [Instalación](https://gl.wordpress.org/plugins/lorem-shortcode/#installation)
 * [Desenvolvemento](https://gl.wordpress.org/plugins/lorem-shortcode/#developers)

 [Soporte](https://wordpress.org/support/plugin/lorem-shortcode/)

## Descrición

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](https://wordpress.org/plugins/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/](http://dummyimage.com/),
and hence the shortcode supports the same parameters as [http://dummyimage.com/](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](http://soderlind.no/archives/2010/11/17/lorem-shortcode/)

## Capturas

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

## Instalación

#### 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](https://wordpress.org/plugins/shortcode-ui/) plugin and
activate it.

## Preguntas frecuentes

  Where’s the Shortcode UI?

You need to install the [Shortcode UI](https://wordpress.org/plugins/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

 * [Smashing Magazine](http://www.smashingmagazine.com/) has a nice (as allways)
   article about [Mastering WordPress shortcodes](http://www.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes/).
   The article has several examples you can use as a starting point for writing 
   your own.
 * At codplex, you’ll find the [Shortcode API documented](https://codex.wordpress.org/Shortcode_API)
 * Also, feel free to use this plugin as a template for you own shortcode plugin

## Comentarios

Non hai recensións para este plugin.

## Colaboradores e desenvolvedores

“lorem shortcode” é un software de código aberto. As seguintes persoas colaboraron
con este plugin.

Colaboradores

 *   [ Per Søderlind ](https://profiles.wordpress.org/pers/)

[Traduce “lorem shortcode” ao teu idioma.](https://translate.wordpress.org/projects/wp-plugins/lorem-shortcode)

### Interesado no desenvolvemento?

[Revisa o código](https://plugins.trac.wordpress.org/browser/lorem-shortcode/), 
bota unha ollada ao[repositorio SVN](https://plugins.svn.wordpress.org/lorem-shortcode/),
ou subscríbete ao [log de desenvolvemento](https://plugins.trac.wordpress.org/log/lorem-shortcode/)
por [RSS](https://plugins.trac.wordpress.org/log/lorem-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Rexistro de cambios

#### 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/](http://dummyimage.com/)

#### 1.0

 * initial release

## Meta

 *  Versión **1.3.3**
 *  Última actualización **Fai 9 anos**
 *  Instalacións activas **100+**
 *  Versión de WordPress ** 2.8.6 ou superior **
 *  Probado ata **4.7.33**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/lorem-shortcode/)
 * Etiquetas
 * [dummy image](https://gl.wordpress.org/plugins/tags/dummy-image/)[dummy text](https://gl.wordpress.org/plugins/tags/dummy-text/)
   [lorem ipsum](https://gl.wordpress.org/plugins/tags/lorem-ipsum/)[shortcake](https://gl.wordpress.org/plugins/tags/shortcake/)
   [shortcode](https://gl.wordpress.org/plugins/tags/shortcode/)
 *  [Vista avanzada](https://gl.wordpress.org/plugins/lorem-shortcode/advanced/)

## Valoracións

 5 de 5 estrelas

 *  [  1 valoración de 5 estrelas     ](https://wordpress.org/support/plugin/lorem-shortcode/reviews/?filter=5)
 *  [  0 valoracións de 4 estrelas     ](https://wordpress.org/support/plugin/lorem-shortcode/reviews/?filter=4)
 *  [  0 valoracións de 3 estrelas     ](https://wordpress.org/support/plugin/lorem-shortcode/reviews/?filter=3)
 *  [  0 valoracións de 2 estrelas     ](https://wordpress.org/support/plugin/lorem-shortcode/reviews/?filter=2)
 *  [  0 valoracións de 1 estrelas     ](https://wordpress.org/support/plugin/lorem-shortcode/reviews/?filter=1)

[Engadir a miña recensión](https://wordpress.org/support/plugin/lorem-shortcode/reviews/#new-post)

[Ver todas as valoracións](https://wordpress.org/support/plugin/lorem-shortcode/reviews/)

## Colaboradores

 *   [ Per Søderlind ](https://profiles.wordpress.org/pers/)

## Soporte

Tes algo que dicir? Necesitas axuda?

 [Ver o foro de soporte](https://wordpress.org/support/plugin/lorem-shortcode/)

## Doar

Queres apoiar o progreso deste plugin?

 [ Dona a este plugin ](http://soderlind.no/donate/)