In WP Coder Pro, start with the WP Coder Debug Bar PRO (Tools → Developer): on any page it lists which snippets ran, which are shortcode-only and which were skipped and why. Most answers below are one look at it away.
A snippet doesn’t show on the site#
Check in this order:
- Licence PRO — without an active licence WP Coder Pro prints nothing on the front end. WP Coder Pro → License.
- Active — the switch in the sidebar (or in All Codes) is on.
- Test mode — a snippet in test mode is shown only to logged-in administrators. Check in a private window.
- Placement — the snippet needs Display: Everywhere, a shortcode or a block (in Pro also a Display Rule or a template). Otherwise it is shortcode-only.
- Conditions PRO — a users, schedule, device, browser, OS, language, cookie, referrer, URL or visitor condition may hide it. The summary at the top of the Conditions tab says when it shows.
- Location — Before/after post content works only on single posts and pages, not on archives.
- Cache — a page cache may serve an old copy. Purge it after saving; WP Coder Pro purges common caches on save and has Tools → Developer → Clear Page Cache PRO — a CDN or host cache you still purge yourself.
The shortcode is printed as text#
- Check the spelling:
[wp_code id="12"]— straight quotes, no spaces inside the brackets. - A page builder’s text widget may not run shortcodes: use its shortcode element, or turn on the snippet Enable Shortcode Execution in Text Widgets.
- Make sure the plugin is active — activating WP Coder deactivates WP Coder Pro, and the other way round.
CSS or JS doesn’t load#
- The file is loaded only on pages where the snippet is shown.
- Placeholders (
{{$name}}) in CSS/JS work only with Inline on, and only in WP Coder Pro. PRO - jQuery — on Auto PRO, jQuery is loaded only if the code writes
jQuery,$(or$.. Choose Always load if your code needs it otherwise. In the free WP Coder, make sure Disable jQuery isn’t ticked. - After a migration or restore, re-save the snippet so its files are written; in Pro also run Tools → Developer → Rebuild Combined Files.
- A Content Security Policy without
'unsafe-eval'blocks Obfuscated JS — use Minify.
The site broke after saving PHP#
The plugin catches ordinary errors and switches a snippet off after an uncatchable fatal — reload the page once. If the admin is still unreachable:
- Log in and add
?wpcoder-safe-mode=1to the admin URL, or - add
define( 'WPCODER_SAFE_MODE', true );towp-config.php.
Then fix or deactivate the snippet. Details: PHP Errors & Safe Mode.
“Cannot redeclare function”#
A function is declared in code that runs twice — usually a PHP tab on Run where inserted in a snippet shown twice on a page. Move hooks and functions to Include PHP → Run everywhere, or wrap them in if ( ! function_exists( 'name' ) ).
PHP runs but its variables are empty in the HTML#
Only Run where inserted passes PHP variables to the HTML. A tab on admin / front end / everywhere runs early, once per request.
My PHP doesn’t run at all#
- It may use a forbidden function (
eval,exec,base64_decode…). The block is written to the PHP error log — see the Debug Log (in Pro, Errors caught in snippets). - Safe Mode may be on — look for its notice, or
WPCODER_SAFE_MODEinwp-config.php.
A condition works for me but not for visitors PRO#
Device, browser, OS, cookie, referrer, schedule and new/returning-visitor conditions are decided per request. A full-page cache serves the first visitor’s version to everyone. Exclude those pages from the cache.
I can’t see the WP Coder menu#
The menu is called WP Coder, or WP Coder Pro in Pro. Only administrators with manage_options and unfiltered_html can use it. On multisite that is super admins by default; DISALLOW_UNFILTERED_HTML hides it from everyone.
The block preview is empty#
The snippet is off, it printed nothing with the current values, or — in Pro — there’s no licence; Pro’s preview says which. See The WP Coder Snippet Block.
FAQ#
Do I need to know how to code?
For the Snippets library and most Tools — no. For your own snippets basic HTML and CSS are enough; in WP Coder Pro, QuickCode and Loop Logic cover dynamic content without PHP.
Will WP Coder slow my site down?
CSS and JS load only where a snippet is shown, can be minified (and combined in Pro), and snippet rows are read once per request. The Performance snippets remove WordPress’s own unused assets.
What happens to my snippets if I change the theme?
Nothing — they live in the plugin, not in the theme. Check snippets whose CSS targets theme classes.
What happens if the licence expires or I deactivate it? PRO
Your snippets stay in the database, but the front end prints nothing until a licence is active again. WP Coder Pro licences are lifetime — updates and support included.
Can I use one licence on several sites? PRO
A licence covers 1, 5 or 20 sites, depending on the plan. Free a slot with License → Deactivate plugin on a site you no longer use, or manage your sites in Account → License keys.
Can I go back to the free WP Coder?
Yes. Activate WP Coder (free): Pro is deactivated and your snippets stay. Pro-only settings simply have no effect in the free plugin.
Is there a refund for WP Coder Pro?
Yes — within 15 days of purchase. Contact support.
Where do I get help?
Read the Tutorials or contact support — include your WordPress and PHP versions and, if PHP is involved, the entries from the Debug Log.