Execute arbitrary, reusable PHP code in posts, pages, comments, widgets and RSS feeds using shortcodes in a safe and easy way
The shortcode will not be handled and will appear unprocessed.
Users with manage_options (single user) or manage_network (multi user) capability (administrators).
Anyone who can create or modify posts, pages and/or widgets or can write comments. Shortcode execution in widgets, excerpts, comments and RSS feeds is disabled by default (unless another plugin or your theme does enable it). It is possible to restrict shortcode execution in posts and pages based on the capabilities of the post or page author (since version 1.18).
Because the PHP eval function is used, errors cannot be handled unfortunately, so test your code thoroughly.
Unlimited.
This can happen if the PCRE backtrack value is too low. Try increasing it using the plugin settings.
The shortcode name, options and PHP code are stored as WordPress options.
Indirectly, by using default values.
No, omit both <?php and ?>.
Yes, if you enclose the HTML code with ?> and <?.
The post or page author has insufficient privileges to execute shortcodes.
Note that your code is not directly executed in the WordPress environment, but in a function. This means for example that a global $wpdb; is needed to access the database class. If I am around I am happy to help you with your code, see next question.
You can write a comment in the the forum.
Requires: 3.1 or higher
Compatible up to: 3.3.2
Last Updated: 2012-5-13
Downloads: 89,341
0 of 0 support threads in the last three weeks have been resolved.
Got something to say? Need help?