24 articles WordPress Page 5 / 5

How do I make it easy to insert PHP code or an entire PHP file into a WordPress page, post or widget? Make a shortcode!

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,…

How do I allow shortcodes to be executed in a WordPress widget?

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!

Turn on WordPress Debugging

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…

How do I remove the “HTML Markup” after the comment form in WordPress?

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: