Get theme info from style.css If you want to show theme infos in your template you can grab them with...
Create new image sizes for custom post types By default WordPress creates three images sizes for every picture uploaded to your media library....
Randomize your posts Add this code snippet to your functions.php file. It jumps into the pre_get_posts hook and...
Show current child category in template This function displays the post's current child category name.
Modify “Category:” from the_archive_title This function jumps into the hook the_archive_title to help you to modify the default output...
Check if email is valid $email = '[email protected]'; // email address which we are verifying if ( is_email( $email )...
Add download category and tag to post class These two functions will add the download category and the download tag slug to the...
List download categories with EDD If you are using EasyDigitalDownloads plugin you may want to build a template which lists...
Add welcome message to wp-login This function inserts custom html below the logo on your wp-admin\ wp-login.php site. Add any...
Force SSL on custom post types This snippet tells WordPress to use a SSL connection if a single page from custom...