Add search form to specific wp_nav_menu
Adding this snippet to the functions.php of your wordpress theme will add the search form to your wordpress wp_nav_menu. Don’t forget to update the MENU-NAME to specify the menu you wish to display within, just in case you have multiple menus.
read moreSetup whitelist body_class to remove unwanted classes
Adding this snippet to the functions.php of your wordpress theme will let you create a white-list of terms to include in body_class. This is a great way to filter out many of the unwanted classes added
read moreDisplay user with the most comments with count, email, author url
Adding this snippet to the functions.php of your wordpress theme will let you display the top commenter list of users. Use $result->comment_author_email, $result->comments_count, $result->comment_author_url, to add additional parameters to this snippet.
read morethis months featured snippets
Display attachment thumbnail with image metadata
Adding this snippet within the loop of your index.php template file will display a list of all post attachments with the following metadata (Credit, Camera, Focal Length, Aperture, ISO, Shutter Speed, Time Stamp, Copyright).
read moreDisplay external files in posts using shortcode
Adding this snippet to the functions.php of your wordpress theme will allow you to include the content of an external file within your page using shortcode.
read moreEntice stumbleupon visitors with custom message
Great little snippet by Filip Stefansson to display a custom message for people visiting via stumbleupon. Add this snippet to your wordpress template a good place is within the header.php.
read moreDisable content editor for specific page template
Adding this snippet to the functions.php of your wordpress theme will disable the content editor when a page is using a specific template. Don’t forget to change the name of the template file on line 08 this sample I have submit.php but can be changed to anything.
read moreDisplay taxonomy terms in an unordered list
Adding this snippet to your wordpress theme will list the custom taxonomies that you registered for a custom post type.
read more












