Descripción
Shortcoder plugin allows to create a custom shortcodes for HTML, JavaScript, CSS and other code snippets. Now the shortcodes can be used in posts/pages and the snippet will be replaced in place.
✍ Crea shortcodes fácilmente
- Give a name for the shortcode
- Pega el HTML/JavaScript/CSS como contenido del shortcode
- Save !
- Now insert the shortcode
[sc name="my_shortcode"]in your post/page. - Voila ! You got the HTML/Javascript/CSS in your post.
✨ Características
- Crea shortcodes personalizados fácilmente y úsalos en cualquier parte que sea compatible con shortcodes.
- Ten cualquier HTML, JavaScript y CSS como contenido del shortcode.
- Insert: Custom parameters in shortcode
- Insert: WordPress parameters in shortcode
- Multiple editors: Code, Visual and text modes.
- Globally disable the shortcode when not needed.
- Desactiva el shortcode en dispositivos de escritorio y móviles.
- Un botón en el editor de entradas para seleccionar el shortcode a insertar.
- Execute blocks HTML in shortcode content.
- Insert shortcodes in Gutenberg/block editor.
🎲 An example usage
- Create a shortcode named «adsenseAd» in the Shortcoder admin page.
- Paste the adsense code in the box given and save it.
- Use
[sc name="adsenseAd"]in your posts and pages. - Tada !!! the ad code is replaced and it appears in the post.
- Now you can edit the ad code at one place and the code is updated in all the locations where the shortcode is used.
Similarly shortcodes can be created for frequently used snippets.
You can also add custom parameters (like %%id%%) inside the snippets, and change it’s value like [sc name="youtube" id="GrlRADfvjII"] when using them.
🧱 Using in block editor
Aunque los shortcodes se pueden usar en cualquier lugar manualmente, Shortcoder proporciona a continuación opciones para seleccionar e insertar los shortcodes creados fácilmente al trabajar con el editor de bloques.
- Bloque de Shortcoder
- Botón de la barra de herramientas para seleccionar e insertar shortcodes integrados (en «más»)
💎 Upgrade to PRO
Shortcoder also provides a PRO version which has additional features to further enhance the experience. Below features are offered in the PRO version.
- Custom editor – Edit Shortcode content using block editor or page builder plugins like Elementor and WPBakery.
- (New) Translation with WPML – Translate Shortcode content with WPML.
- Revisions – Revisions support for Shortcode content.
- Locate shortcode – Search posts and pages where a shortcode is used.
- Extra code – Include extra code to the footer when a shortcode is used in a page.
Get started with Shortcoder – PRO
Enlaces
Capturas







Bloques
Este plugin proporciona 1 bloque.
- Shortcoder
Instalación
- Extrae el archivo comprimido y sube la carpeta
Shortcoderal directorio/wp-content/plugins/. - Activa el plugin a través del menú
Pluginsen WordPress. - Open the admin page from the «Shortcoder» link in the navigation menu.
FAQ
Please visit the plugin documentation page for complete list of FAQs.
-
What are the allowed characters for shortcode name?
-
Allowed characters are alphabets, numbers, hyphens and underscores.
-
My shortcode is not working in my page builder!
-
Please check with your page builder plugin to confirm if the block/place/area where the shortcode is being used can execute shortcodes. If yes, then shortcode should work fine just like regular WordPress shortcodes.
-
My shortcode is not working!
-
Please check the following if you notice that the shortcode content is not printed or when the output is not as expected.
- Please verify if the shortcode content is printed. If shortcode content is not seen printed, check the shortcode settings to see if any option is enabled to restrict where and when shortcode is printed. Also confirm if the shortcode name is correct and there is no duplicate
nameattribute for the shortcode. - If shortcode is printed but the output is not as expected, please try the shortcode content in an isolated environment and confirm if the shortcode content is working correctly as expected. Sometimes it might be external factors like theme, other plugin might conflict with the shortcode content being used.
- There is a known limitation in shortcodes API when there is a combination of unclosed and closed shortcodes. Please refer this document for more information.
- Please verify if the shortcode content is printed. If shortcode content is not seen printed, check the shortcode settings to see if any option is enabled to restrict where and when shortcode is printed. Also confirm if the shortcode name is correct and there is no duplicate
-
Can I insert PHP code in shortcode content?
-
No. En este momento el plugin solo es compatible con HTML, JavaScript y CSS como contenido del shortcode.
-
Can I use block editor or page builders like Elementor, WPBakery to create shortcode?
-
Yes, this feature is available in the PRO version. You can upgrade to the PRO version to design using custom editor and create shortcode for that.
Reseñas
Colaboradores y desarrolladores
«Shortcoder — Create Shortcodes for Anything» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
Colaboradores«Shortcoder — Create Shortcodes for Anything» está traducido en 14 idiomas. Gracias a los traductores por sus contribuciones.
Traduce «Shortcoder — Create Shortcodes for Anything» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
6.6
- New: Setting to allow Editors to browse and insert existing shortcodes from the post editor.
- Fix: Updated Shortcoder block editor as per the latest API.
- Fix: Support for WordPress 7.1
6.5.4
- Fix: Select and insert shortcode popup is available only for administrators.
- Fix: Custom parameter value will be sanitized by default.
- Fix: Remove double slash in the JS include URL of the TinyMCE editor button.
- Fix: Support for WordPress 7.0
6.5.3
- New: Added general setting to sanitize custom field values before using in shortcode content.
- Fix: Support for WordPress 6.9
6.5.2
- Fix: Sanitize custom field value before being inserted into post.
6.5.1
- Fix: Added
nullchecks to fix warning in some scenarios.
6.5
- Fix: Support for WordPress 6.8.
6.4
- New: Option to set shortcode display name next to shortcode name.
- New: Option to execute WordPress block HTML in shortcode content.
- Fix: Shortcoder roles are registered when plugin is activated.
