This is one of my all-time useful and favorite WordPress shortcodes ever. It's so simple, just put the code below into your active theme's function.php file and now you have a very flexible and powerful shortcode where you can embed external PHP -- provided the PHP code is in a file on your own site,…
It comes in handy -- to be able to use those dynamic and very useful shortcodes in more places. I'm sure the developers of WordPress have a reason to make developers have to put this extra line in the active theme's function.php file, so here it is. Yes, it's that simple!
When you're in development mode, it's useful to get errors in scripts as they occur. Just place this line anywhere in your functions.php file for your active child theme and you will start seeing debug feedback complete with script names and line numbers. You can just remove this line, or set "WP_DEBUG" to false…
<?php define('WP_DEBUG', true); ?>
Find the line in your child theme's "comment.php" file where it calls on the function comment_form() and replace that line with this:
<?php comment_form(array('comment_notes_after' => '')); ?>