Title: Visual Shortcodes
Author: J B
Published: <strong>Awst 18, 2011</strong>
Last modified: Ionawr 12, 2013

---

Search plugins

Nid yw’r ategyn hwn **wedi cael ei ddiweddaru ers 3 ryddhad mawr**. Efallai nad 
yw’n cael ei gynnal bellach ac efallai bod materion cydnawsedd wrth gael ei ddefnyddio
gyda fersiynau mwy diweddar o WordPress.

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

# Visual Shortcodes

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

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

 * [Details](https://cy.wordpress.org/plugins/visual-shortcodes/#description)
 * [Reviews](https://cy.wordpress.org/plugins/visual-shortcodes/#reviews)
 *  [Installation](https://cy.wordpress.org/plugins/visual-shortcodes/#installation)
 * [Development](https://cy.wordpress.org/plugins/visual-shortcodes/#developers)

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

## Disgrifiad

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.

## Gosod

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

## Cwestiynau Cyffredin

  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.

## Adolygiadau

![](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/) Chwefror 7, 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.

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/)

## Contributors & Developers

“Visual Shortcodes” is open source software. The following people have contributed
to this plugin.

Cyfranwyr

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

[Translate “Visual Shortcodes” into your language.](https://translate.wordpress.org/projects/wp-plugins/visual-shortcodes)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/visual-shortcodes/),
check out the [SVN repository](https://plugins.svn.wordpress.org/visual-shortcodes/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/visual-shortcodes/)
by [RSS](https://plugins.trac.wordpress.org/log/visual-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## Cofnod Newid

#### 0.1

Initial release

## Meta

 *  Version **0.1**
 *  Last updated **14 blynedd yn ôl**
 *  Active installations **100+**
 *  WordPress version ** 3.2.1 neu uwch **
 *  Tested up to **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/visual-shortcodes/)
 * Tags
 * [editor](https://cy.wordpress.org/plugins/tags/editor/)[shortcodes](https://cy.wordpress.org/plugins/tags/shortcodes/)
   [visual editor](https://cy.wordpress.org/plugins/tags/visual-editor/)
 *  [Advanced View](https://cy.wordpress.org/plugins/visual-shortcodes/advanced/)

## Graddau

 2.5 out of 5 stars.

 *  [  0 5-star reviews     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/visual-shortcodes/reviews/)

## Cyfranwyr

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

## Cefnogaeth

Rhywbeth i’w ddweud? Angen help?

 [Gweld y fforwm cefnogi](https://wordpress.org/support/plugin/visual-shortcodes/)