wordpress snippets last updated   : September 29, 2014
we now have 639 snippets

Add wordpress post types to the dashboard ‘At a glance’ widget

wordpress snippet

The WordPress dashboard includes a handy widget that displays some brief information about your site at a glance – rather creatively, it’s titled ’At a Glance’. By default it shows you the number of posts, pages and comments on your site allowing you to click through to edit each of those sections if you have the right permissions.

read more

Hide post view and post preview admin buttons

wordpress snippet

Ever wanted to remove “preview & view” options from the new post and post edit admin screens. Add this snippet to the functions.php of your wordpress theme and don’t forget to update the post type array. Enter any post type you would like to remove the “view and preview” buttons from “custom post type, post, page”.

read more

Change default ‘Enter Title Here’ for custom post types

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you change default ‘Enter Title Here’ for custom post types. You will need to update the POST_TYPE name and default text

read more

Add custom post types to archives page

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you add custom post types to archives page.

read more

Start date, End date, metabox for events custom post types

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add three metaboxes to your events custom post type “Start date, End date, Location”. This is a great snippet of code by Devin I found just the other day. Take a look at his blog post for even more details about setting up an events custom post type.

read more

Adding custom post types to wp_get_archives()

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will enable wp_get_archives to display your custom post types. Don’t forget to update your custom post type name on line 06.

read more
jqsnipp.com | we just launched jquery snippets website