This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

My Shortcodes

Description

Build custom shortcode elements or download and install shortcodes made by other My Shortcodes users.

Highly flexible shortcode builder environment. dedicated areas for template view, javascript input, custom PHP library, external/CDN css and javascript sources.
This enables you to render the page or posts with the requires scripts and styles to be placed where it belongs. not all in the shortcode replace area.

IMPORTANT: version 2 is not compatible with 1.9.2 exported .CE files. If you have exported and saved .ce shortcodes. Please import them before upgrading. once upgraded, the shortcodes will be converted. you can then export the converted elements to .MSC files for safe keeping.

on GitHub

Documentation

Screenshots

  • You admin panel. Manage, edit, activate & export elements and shortcodes.
  • View a summary of your element for easy reference.
  • Element settings - with live preview.
  • Add external and WordPress provided librries for CSS and Javascript.
  • Clean editor with custom syntax hightlighting on built in tags like [loop] and [if] and your attriburtes in {{att}} tags.
  • Create dedicated widgets, with custom config panels for your attributes.

FAQ

Please ask questions in the support forum.

Installation Instructions
  1. Upload my-shortcodes folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Navigate to the My Shortcodes menu item and start creating your own shortcodes.

Reviews

Very useful plugin… with a bug

A very powerful and useful plugin. I use it on every WP website if needed. But it has a bug: when you migrate to another domain or from http to https via changing all mentions of old_domain (or http://) to new_domain (or to https://) in your database, some (sometimes all) your shortcodes generated eariler, will be broken (blank, without content). Moreover, its` content is stored in DB, but “My Shortcodes” does not see it.
========================
По-русски: плагин отличный, но есть серьёзный баг: если вам нужно переехать на другой домен (и вы меняете его автозаменой в БД на новый), или же переехать с http на https, то после замены всех вхождений идём в любой созданный ранее шорт-код, и видим… что в его содержимом (HTML) пусто! В то же время содержимое по-прежнему хранится в базе, но плагин его почему-то не видит. Так что при необходимости описанных выше случаев приходится вручную сохранять имя и содержимое каждого шорткода в отдельном файле, потом удалять все шорт-коды (чтоб не засорять базу) и после переезда создавать их заново.

Если же вам не нужно ни менять домен, ни менять протокол на https, то My Shortcodes – пожалуй, лучший (по удобству и продуманности) плагин.

Absolutely Amazing

This plugin is so extremely essential to my website that I wouldn’t be able to live without it! I was easily able to create dozens of shortcodes that dramatically shorten the length and complexity of my posts and pages so that editing them and adding new products is fast and simple. By creating multiple shortcodes that I stack into templates with blank areas designed for adding unique text and images I can create new pages with all the essential elements in a flash and make widespread changes to the stylistic coding that effects all uses of that shortcode but not the content itself. When these changes instantly take effect over thousands of individual affiliate products I am so grateful for the use of this plugin because it saves me hundreds if not thousands of hours manually updating each page.

Read all 13 reviews

Contributors & Developers

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

Contributors

Changelog

2.3

  • Updated for WP 3.9+

2.06

  • some bug fixes that where annoying me.

2.05

  • improved the rendering of the [if attribute][/if] short tags in html templates.

2.04

  • Swapped out the old MSC file for json import. This correct a bug that caused broken imports and extends compatibility with Caldera Engine.

2.03

  • improved cache cleanup

2.02b

  • Small fix for placing WordPress admin notices neatly as not to mess up the interface.

2.02

  • Fixed a bug that caused elements to revert to type “shortcode” on edit.

2.01

  • Fixed the shortcode inserter to not insert blank attributes
  • Added a check for attributes before attempting parsing
  • Added a check for confirming the existance of a cache file before attemting to clear it
  • Minor Bug Fixes

2.0

  • Complete rebuild of the core system
  • Complete editor overhaul to be inline with the more advanced Caldera Engine (pro version)
  • Added dedicated widget element types
  • Improved shortcode insert builder
  • Dramatic overhaul in the shortcode detection and element insertion on page renders.
  • Improved chaching of scripts and codes.

1.9.2

  • Added in a check to see if a cache file actually does exists prior to trying to delete it. sigh. sorry I missed this. But its fixed now.

1.9.1

  • CSS is now saved to a cache file and linked in the headers. Going to let it run for a while to see stability. Once no reported problems, I adding it to JavaScript as well.
  • Added a better instanceID. Using the shortcode multiple time on a page or post will each get a unique value for {{id}} dynamic tag. Great for giving elements a unique ID.
  • Added a check to not include code from the PHP tab multiple times. This should prevent the “Fatal error: Cannot redeclare” PHP error.
  • Took the jQuery document.ready() out of the javascript output to remove the jQuery requirement.
  • Unfortunately, I could not get Multi-site compatability in yet (not really complex, just a lot of restructuring.), but that is scheduled for the next update. Sorry 🙁

1.9

  • html is properly escaped before going into the code editor so using tags wont break it.

1.8

  • Fixed a bug that prevented CSS and JS from rendering if a page with a shortcode is placed as the home page.

1.7

  • Fixed a bug that messed up utf-8 characters.

1.6

  • Description text for inserting a shortcode without any attributes. changed to sound less like an error.
  • Corrected an error that prevented running shortcodes on the home page

1.5

  • Corrected a bug that prevented PHP from rendering on some pages.
  • Fixed a bug that allowed prevented the footer scripts from running.

1.4

  • Added correction to the attribute access in CSS and Javascript.

1.3

  • Improved the shortcode detection to load all scripts.
  • Added another screenshot that explains the rendering process.
  • Added a tab in admin that links to the explain screen.
  • Added PHP execution in javascript and CSS tabs. (Yup, dynamic CSS and javascript!).
  • Added an con to the admin menu item.

1.2

  • Added an insert shortcode button to the post editor.

1.1

  • Added attribute codes to javascript panel so you can use attributes in output scripts as well.
  • Fixed a bug that reverted the external javascript library to be placed in footer on edit.

1.0

  • Initial Release