PluginProbe ʕ •ᴥ•ʔ
Shortcoder — Create Shortcodes for Anything / 6.2
Shortcoder — Create Shortcodes for Anything v6.2
trunk 3.0 3.0.1 3.1 3.2 3.3 3.4 3.4.1 4.0 4.0.1 4.0.2 4.0.3 4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2 4.3 4.4 4.5 4.6 5.0 5.0.1 5.0.2 5.0.3 5.0.4 5.1 5.2 5.2.1 5.3 5.3.1 5.3.2 5.3.3 5.3.4 5.4 5.5 5.6 5.7 5.8 6.0 6.1 6.2 6.3 6.3.1 6.3.2 6.4 6.5 6.5.1 6.5.2 6.5.3
shortcoder / readme.txt
shortcoder Last commit date
admin 3 years ago includes 3 years ago languages 3 years ago readme.txt 3 years ago shortcoder.php 3 years ago
readme.txt
333 lines
1 # Shortcoder — Create Shortcodes for Anything
2 Contributors: vaakash
3 Author URI: https://www.aakashweb.com/
4 Plugin URI: https://www.aakashweb.com/wordpress-plugins/shortcoder/
5 Tags: shortcode, html, javascript, shortcodes, snippets, posts, pages, widgets, insert, adsense, ads, code, elementor, WPBakery
6 Donate link: https://www.paypal.me/vaakash/
7 License: GPLv2 or later
8 Requires PHP: 5.3
9 Requires at least: 4.9.0
10 Tested up to: 6.2
11 Stable tag: 6.2
12
13 Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes within posts, pages & widgets
14
15
16
17 ## Description
18
19 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.
20
21 ### ✍ Create shortcodes easily
22 1. Give a name for the shortcode
23 1. Paste the HTML/JavaScript/CSS as shortcode content
24 1. Save !
25 1. Now insert the shortcode `[sc name="my_shortcode"]` in your post/page.
26 1. **Voila !** You got the HTML/Javascript/CSS in your post.
27
28 ### ✨ Features
29
30 * Create **custom shortcodes** easily and use them in any place where shortcode is supported.
31 * Have any **HTML**, **Javascript**, **CSS** as Shortcode content.
32 * Insert: **Custom parameters** in shortcode
33 * Insert: **WordPress parameters** in shortcode
34 * Multiple editors: Code, Visual and text modes.
35 * Globally disable the shortcode when not needed.
36 * Disable shortcode on desktop, mobile devices.
37 * A button in post editor to pick the shortcodes to insert.
38 * Supports Gutenberg.
39
40 ### 🎲 An example usage
41
42 1. Create a shortcode named "adsenseAd" in the Shortcoder admin page.
43 1. Paste the adsense code in the box given and save it.
44 1. Use `[sc name="adsenseAd"]` in your posts and pages.
45 1. Tada !!! the ad code is replaced and it appears in the post.
46 1. Now you can edit the ad code at one place and the code is updated in all the locations where the shortcode is used.
47
48 Similarly shortcodes can be created for frequently used snippets.
49
50 You can also add [custom parameters](https://www.aakashweb.com/docs/shortcoder/) (like `%%id%%`) inside the snippets, and change it's value like `[sc name="youtube" id="GrlRADfvjII"]` when using them.
51
52 ### 🧱 Using in block editor
53
54 Though shortcodes can be used in **any** place manually, Shortcoder provides below options to select and insert the shortcodes created easily when working with the block editor.
55
56 * Shortcoder block
57 * Toolbar button to select and insert shortcodes inline (under "more")
58
59 ### 💎 Upgrade to PRO
60
61 Shortcoder also provides a [PRO version](https://www.aakashweb.com/wordpress-plugins/shortcoder/) which has additional features to further enhance the experience. Below features are offered in the PRO version.
62
63 * **Custom editor** - Edit Shortcode content using block editor or page builder plugins like Elementor and WPBakery.
64 * **Revisions** - Revisions support for Shortcode content.
65 * **Locate shortcode** - Search posts and pages where a shortcode is used.
66 * **Extra code** - Include extra code to the footer when a shortcode is used in a page.
67
68 [Get started with Shortcoder - PRO](https://www.aakashweb.com/wordpress-plugins/shortcoder/)
69
70 ### Links
71
72 * [Documentation](https://www.aakashweb.com/docs/shortcoder/)
73 * [FAQs](https://www.aakashweb.com/docs/shortcoder/faq/)
74 * [Support forum/Report bugs](https://www.aakashweb.com/forum/)
75 * [PRO features](https://www.aakashweb.com/wordpress-plugins/shortcoder/#pro)
76
77
78
79 ## Installation
80
81 1. Extract the zipped file and upload the folder `Shortcoder` to to `/wp-content/plugins/` directory.
82 1. Activate the plugin through the `Plugins` menu in WordPress.
83 1. Open the admin page from the "Shortcoder" link in the navigation menu.
84
85
86
87 ## Frequently Asked Questions
88
89 Please visit the [plugin documentation page](https://www.aakashweb.com/docs/shortcoder/) for complete list of FAQs.
90
91 ### What are the allowed characters for shortcode name?
92
93 Allowed characters are alphabets, numbers, hyphens and underscores.
94
95 ### My shortcode is not working in my page builder!
96
97 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.
98
99 ### My shortcode is not working!
100
101 Please check the following if you notice that the shortcode content is not printed or when the output is not as expected.
102
103 * 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 `name` attribute for the shortcode.
104 * 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.
105 * There is a known limitation in shortcodes API when there is a combination of unclosed and closed shortcodes. Please refer [this document](https://codex.wordpress.org/Shortcode_API#Unclosed_Shortcodes) for more information.
106
107 ### Can I insert PHP code in shortcode content?
108
109 No, right now the plugin supports only HTML, Javascript and CSS as shortcode content.
110
111 ### Can I use block editor or page builders like Elementor, WPBakery to create shortcode?
112
113 Yes, this feature is available in the PRO version. You can upgrade to the [PRO version](https://www.aakashweb.com/wordpress-plugins/shortcoder/) to design using custom editor and create shortcode for that.
114
115
116
117 ## Screenshots
118
119 1. Shortcoder admin page.
120 2. Editing a shortcode.
121 3. "Insert shortcode" popup to select and insert shortcodes.
122 4. A shortcode inserted into post.
123 5. Shortcoder block for Gutenberg editor.
124 6. Shortcoder executed in the post.
125 7. Insert shortcode inline from block editor toolbar.
126
127 [More Screenshots](https://www.aakashweb.com/wordpress-plugins/shortcoder/)
128
129
130
131 ## Changelog
132
133 ### 6.2
134 * New: Option to show shortcode content in "All shortcodes" page.
135 * Fix: Some texts were not translated.
136 * Fix: Error in WP Bakery page builder while picking images.
137
138 ### 6.1
139 * New: Enhancements to shortcode edit screen meta boxes.
140 * Fix: HTML is escaped in the editor sometimes.
141 * Fix: Support for WordPress 6.1
142
143 ### 6.0
144 * New: PRO version is introduced.
145 * New: Prevent same shortcode nested loop.
146 * New: New actions and filters introduced.
147 * Fix: Post excerpt shortcode parameter now prints full post excerpt.
148 * Fix: Enhancements to input and output data sanitization.
149
150 ### 5.8
151 * New: Option to set description for the shortcode.
152 * New: New actions and filters introduced.
153 * Fix: Minor admin UI enhancements.
154
155 ### 5.7
156 * New: Reordered shortcode column in the "All shortcodes" page.
157 * New: Option to copy shortcode directly from "All shortcodes" page.
158 * New: Filter `sc_mod_content` to modify shortcode content before execution.
159 * Fix: Shortcode won't save if the email field in the feedback form has invalid value.
160 * Fix: Custom parameter with hyphen was not highlighted in code editor.
161 * Fix: Minor admin UI enhancements.
162
163 ### 5.6
164 * New: Shortcodes available to copy/insert are now closed by default.
165 * Fix: Custom parameter value 0 is not displayed.
166 * Fix: Support for WordPress 5.8
167
168 ### 5.5
169 * New: General settings page to configure default editor and shortcode content.
170 * New: Block to insert shortcode rewritten from scratch.
171 * New: Toolbar button to insert shortcodes inline.
172 * New: Shortcodes are now closed by default when inserted from editor.
173 * Fix: Custom fields parsing issue when they are placed next to each other.
174 * Fix: Enclosed content in block input now retains multi-line.
175 * Fix: Minor refinements to UI.
176
177 ### 5.4
178 * New: Code editor is now loaded locally and not from cloudflare.
179 * New: Code editor now shows hints and highlights any syntax error.
180 * New: Hyphens can now be used in shortcode custom parameters.
181 * Fix: Handle scenario where shortcode attribute is received as a string sometimes.
182 * Fix: Notice where `wp_localize_script` was called incorrectly.
183 * Fix: Handle scenario where HTML is passed as shortcode parameter.
184 * New: WordPress requirement changed from 4.4 to 4.9
185
186 ### 5.3.4
187 * New: Tested with WordPress 5.6
188 * Fix: Handle warning with `trim` while fetching page metadata at some pages.
189
190 ### 5.3.3
191 * New: Support for `post slug` as the new shortcode parameter under WordPress information.
192 * New: Codemirror has been updated to latest version.
193 * Fix: Handle code editor loading issue when there is any collision.
194 * Fix: Handle input fields which have empty `id` attribute.
195 * Fix: Handle issue of `$post` object being undefined at some cases.
196 * Fix: Renamed usages of `__class__` to `__CLASS__`
197
198 ### 5.3.2
199 * New: In code editor, shortcodes will be highlighted and code editor font size is slightly bigger.
200
201 ### 5.3.1
202 * New: Code editor is now made the default editor.
203 * Fix: Minor changes to admin UI.
204
205 ### 5.3
206 * New: Added support for underscores in custom parameters.
207 * New: Getting ready for internationalization of the plugin.
208 * Fix: Insert shortcode popup shows duplicate available parameters in case of same parameter with different case.
209
210 ### 5.2.1
211 * Fix: Custom parameters being not replaced in some scenarios.
212 * Fix: Minor enhancement to insert custom parameter form.
213
214 ### 5.2
215 * New: Default values can now be provided to custom parameters.
216 * Fix: Script tags, custom field placeholder and backslash being stripped after saving the shortcode sometimes.
217 * Fix: Rel attribute being modified for links.
218 * New: Added "Manage shortcodes" link to plugin list page for easy access after activation.
219
220 ### 5.1
221 * New: Import/Export link added to the shortcoder list page.
222 * Fix: `empty()` was throwing error at some places for users using PHP 5.5 below as function return value was passed to it.
223 * Fix: Shortcoder QTTags button was loading in frontends.
224 * Fix: "Insert shortcode" popup was hidden behind in theme customizer page.
225 * Fix: `array_key_exists` array but bool given warning.
226 * Fix: Hide comments metabox in shortcode edit page as it was shown in certain conditions.
227
228 ### 5.0.4
229 * Fix: `script` and `style` tags stripped after 4.x upgrade. New migration will run in this version and shortcode content will now be fixed.
230
231 ### 5.0.3
232 * Fix: Shortcode content is not escaped when code editor is used. This is requirement because `post_content` behaves strangely when user has rich editing enabled.
233
234 ### 5.0.2
235 * Fix: Shortcodes inside shortcode content not getting executed.
236 * Fix: Disable Gutenberg block for older not supported WordPress versions.
237
238 ### 5.0.1
239 * Fix: Code editor escaping HTML characters.
240 * Fix: `get_current_screen()` undefined.
241 * Fix: Code editor breaks if there is any other plugin which loads codemirror.
242 * Fix: `tools.php` is not found.
243
244 ### 5.0
245 * New: Brand new version. Plugin rewritten from scratch.
246 * New: Shortcoder block for the block editor.
247
248 ### 4.4
249 * New: Insert shortcode automatically adds "closing tag" if the shortcode has enclosed content parameter.
250 * Fix: Codemirror has been updated to latest version.
251
252 ### 4.3
253 * New: Edit shortcode name after creating.
254 * New: Post modified date parameter added.
255 * Fix: Date parameters now display in site language.
256
257 ### 4.2
258 * Fix: Some plugins fail to fire onload JS event since it was overwritten by shortcoder.
259 * Fix: Javascript in insert shortcode popup not working in IE 11.
260 * Fix: Missing parenthesis while calling `is_year`.
261 * Fix: Widgets page not loading insert shortcode popup.
262 * Fix: Removed settings emoji icon from plugin actions list.
263 * Fix: Load latest version 5.42.0 of codemirror.
264 * Fix: Updated minimum required WordPress version.
265
266 ### 4.1.9
267 * Fix: Minor UI refinements for better experience.
268 * Fix: Import error where some exported JSON files have 0 as EOF.
269
270 ### 4.1.8
271 * New: Insert custom fields in shortcode content.
272 * Fix: Removed comments in shortcode output
273
274 ### 4.1.7
275 * New: Categorize, search and filter shortcodes using "tags".
276 * New: Last used shortcode editor will be saved along with shortcode.
277 * New: Enclosed shortcode content can now be used as shortcode parameter.
278 * New: Active line highlight has been enabled for code editor.
279 * Fix: Codemirror has been updated to latest version.
280 * Fix: Minor admin interface enhancements.
281
282 ### 4.1.6
283 * New: Date variables can noe be added into shortcode content.
284 * Fix: Error "trying to get property of non-object" is handled.
285
286 ### 4.1.5
287 * New: Bloginfo variables can now be added into shortcode content.
288
289 ### 4.1.4
290 * New: Codemirror powered syntax highlighted shortcode content code editor (beta).
291
292 ### 4.1.3
293 * Fix: Shortcode names with not-allowed characters cannot be edited/deleted.
294 * New: Shortcode imports made can now be fresh or overwritten.
295 * New: Only users with `manage_options` capability will see "edit shortcode" option in insert window.
296 * Fix: Import failure with UTF-8 characters.
297 * Fix: Case sensitive search in admin pages.
298 * Fix: Minor admin interface changes.
299
300 ### 4.1.2
301 * New: Search box for shortcodes in admin page.
302
303 ### 4.1.1
304 * Fix: HTTP 500 error because of syntax error in import module.
305
306 ### 4.1
307 * New: Import/export feature for shortcodes.
308 * Fix: Visual editor is now disabled by default.
309 * Fix: Added instructions in admin page.
310
311 ### 4.0.3
312 * New: Added feature to sort created shortcodes list.
313 * Fix: HTML errors in admin page
314
315 ### 4.0.2
316 * Fix: Sometimes `get_current_screen()` was called early in some setups.
317
318 ### 4.0.1
319 * Fix: Servers with PHP version < 5.5 were facing HTTP 500 error because of misuse of PHP language construct in code.
320
321 ### 4.0
322 * New: Plugin rewritten from scratch.
323 * New: Brand new administration page
324 * New: Shortcode visibility settings, show/hide in desktop/mobile devices
325 * New: Insert WordPress information into shortcode content.
326 * Fix: Insert shortcode window is not loading.
327 * Fix: Unable to delete the shortcodes
328
329 (Older change logs are removed from this list)
330
331 ## Upgrade Notice
332
333 Version 5.0 is a major release. Shortcodes from v4 will be migrated to the new way of how shortcodes are stored in v5. Also the navigation is moved to the top level under posts/pages.