Quantcast
Browsing latest articles
Browse All 22 View Live

Show current child category in template

This function displays the post's current child category name. WPcustoms

View Article


Randomize 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 Article


Create 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 Article

Get theme info from style.css

If you want to show theme infos in your template you can grab them with these codes. WPcustoms

View Article

Force a minimum password length at checkout

Force an 8 letter minimum password length for easy digital download customer signups WPcustoms

View Article


Function 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 Article

How to display current post taxonomies and terms

display all the taxonomies of the current post with attached terms WPcustoms

View Article

Require 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 Article


Require 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 Article


Login 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
Browsing latest articles
Browse All 22 View Live