Title: Visual Shortcodes
Author: J B
Published: <strong>18 d'agost de 2011</strong>
Last modified: 12 de gener de 2013

---

Cerca extensions

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

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

# Visual Shortcodes

 Per [J B](https://profiles.wordpress.org/johnpbloch/)

[Baixa](https://downloads.wordpress.org/plugin/visual-shortcodes.0.1.zip)

 * [Detalls](https://ca.wordpress.org/plugins/visual-shortcodes/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/visual-shortcodes/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/visual-shortcodes/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/visual-shortcodes/#developers)

 [Suport](https://wordpress.org/support/plugin/visual-shortcodes/)

## Descripció

This is a utility plugin that will allow other plugins and themes to swap out shortcodes
with custom images, in the same way that WordPress’ native gallery shortcode does
this. Replacement images can be clicked to reveal a ‘delete’ button.

This works extremely well when your shortcode already has a tinymce button, but 
does work for manual shortcodes too.

This plugin does not support multi-line shortcodes or non-self-closing shortcodes(
e.g. it supports `[foo bar="baz"]` but not `[foo]bar baz[/foo]`). Honestly, I don’t
even know what would happen if you tried to use one. It may work, but it’s entirely
unsupported.

To add your shortcode, hook onto the filter `'jpb_visual_shortcodes'`. That filter
will pass one array as an argument. Each element of that array is an associative
array which must contain values for the following keys:

 * `shortcode` The name of the shortcode to replace
 * `image` The url of the image to replace the shortcode with.

Additionally, the array may contain the optional parameter `command`, which must
be a valid tinymce command. If present, this value will trigger a second UI button(‘
Edit’) when the user clicks the replacement image which, when clicked, will execute
the tinymce command passed as the value.

## Instal·lació

Really? I think we all know how this works at this point.

## PMF

  Does this plugin support « shortcode?

Yes and no. It can, theoretically; but only if the developer of that plugin/theme
adds that support to the plugin.

## Ressenyes

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

### 󠀁[No history record (if you click on the red cross, you can't restore the shortcod](https://wordpress.org/support/topic/no-history-record-if-you-click-on-the-red-cross-you-cant-restore-the-shortcod/)󠁿

 [fakakakakaka](https://profiles.wordpress.org/fakakakakaka/) 7 de febrer de 2017

There is no history record for the delete operation, meaning that if you accidentally
click on the red («delete») button over an image, you couldn’t restore it (neither
via Ctrl+Z nor via the arrow-back button in the toolbar). Regular images can be 
restored if deleted. No those generated by this shortcode. I will change my rating
back to 5 stars once this bug has been fixed.

 [ Llegiu totes les 2 ressenyes ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/)

## Col·laboradors i desenvolupadors

«Visual Shortcodes» és programari de codi obert. La següent gent ha col·laborat 
en aquesta extensió.

Col·laboradors

 *   [ J B ](https://profiles.wordpress.org/johnpbloch/)

[Traduïu «Visual Shortcodes» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/visual-shortcodes)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/visual-shortcodes/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/visual-shortcodes/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/visual-shortcodes/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/visual-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 0.1

Initial release

## Meta

 *  Versió **0.1**
 *  Darrera actualització **fa 13 anys**
 *  Instal·lacions actives **100+**
 *  Versió del WordPress ** 3.2.1 o posterior **
 *  Provada fins a **3.5.2**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/visual-shortcodes/)
 * Etiquetes
 * [editor](https://ca.wordpress.org/plugins/tags/editor/)[shortcodes](https://ca.wordpress.org/plugins/tags/shortcodes/)
   [visual editor](https://ca.wordpress.org/plugins/tags/visual-editor/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/visual-shortcodes/advanced/)

## Valoracions

 2.5 sobre 5 estrelles.

 *  [  0 valoracions de 5 estrelles     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=5)
 *  [  1 valoració de 4 estrelles     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=4)
 *  [  0 valoracions de 3 estrelles     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=3)
 *  [  0 valoracions de 2 estrelles     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=2)
 *  [  1 valoració de 1 estrelles     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/visual-shortcodes/reviews/#new-post)

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/visual-shortcodes/reviews/)

## Col·laboradors

 *   [ J B ](https://profiles.wordpress.org/johnpbloch/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/visual-shortcodes/)