A must-have but watch out for camelCase parameters!
-
This is one of the handiest plugins I have ever used. It works great, it’s simple and intuitive to use (see caveat at bottom of this review), and the UI is quite neat and functional without being overbearing.
If you are not into custom coding, I would say you really should have this in your plugin repertoire for every site, along with “User meta shortcodes” by Richard Vencu.
NOTE:
The example parameter of%%someParameter%%
should be changed to%%someparameter%%
or even%%some-parameter%%
. I used a mixed case parameter name like that example, and spent 4 hours trying to figure out why the plugin was not working. Most people would have just deleted the plugin.After cursing PHP because the
str_replace()
andpreg_replace()
functions no longer worked, and cursing the developer of this plugin for not keeping it current (none of which were relevant, as it turns out), I ran across this in the WordPress Codex for the Shortcodes API:IMPORTANT TIP - Don't use camelCase or UPPER-CASE for your $atts attribute names $atts values are lower-cased during shortcode_atts( array( 'attr_1' => 'attr_1 default', // ...etc ), $atts ) processing, so you might want to just use lower-case.
I knocked a star off for that because of how much time it took to figure out what was going on.
- The topic ‘A must-have but watch out for camelCase parameters!’ is closed to new replies.