Show current child category in template
This function displays the post's current child category name. WPcustoms
View ArticleRandomize your posts
Add this code snippet to your functions.php file. It jumps into the pre_get_posts hook and add the argument "orderby=rand" to the main queries. This way your posts get randomized in its order. Feel...
View ArticleCreate new image sizes for custom post types
By default WordPress creates three images sizes for every picture uploaded to your media library. If you want to create a new size for custom post types you can copy this code to your functions file....
View ArticleGet theme info from style.css
If you want to show theme infos in your template you can grab them with these codes. WPcustoms
View ArticleForce a minimum password length at checkout
Force an 8 letter minimum password length for easy digital download customer signups WPcustoms
View ArticleFunction to add a HOME link to your primary navigation
This function creates a custom link in your primary navigation. You can modify it and add more links or insert any other html to your menus WPcustoms
View ArticleHow to display current post taxonomies and terms
display all the taxonomies of the current post with attached terms WPcustoms
View ArticleRequire Minimum Comment Length
Paste this code into your WordPress functions.php file to require a minimum comment length. Adjust the '20' to set the required characters. WPcustoms
View ArticleRequire a Featured Post Image
This code sends an admin message if a featured image is not set for the current post. If no image exists it will save the post as draft. WPcustoms
View ArticleLogin with Username or E-mail
This functions code snippet adds the option to login with the username OR your registered email. By default WP requires a username. WPcustoms
View Article