Add custom post types to archives page
Adding this snippet to the functions.php of your wordpress theme will let you add custom post types to archives page.
read moreStart date, End date, metabox for events custom post types
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 moreAdding custom post types to wp_get_archives()
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 morethis months featured snippets
Check for post type within loop using get_post_type
Adding this snippet within the loop of your wordpress theme will let you conditionally check for a specific post type. Just change the post type ‘products’ or ‘people’ to the post type you would like.
read moreDisplay custom post type menu as submenu
Adding this snippet to the functions.php of your wordpress theme will add a new custom post type however you may notice the ‘show_in_menu’ => ‘edit.php’,. This option will display the custom post type as a submenu within the post edit menu.
read moreAdd custom post types to your sites main RSS feed
Adding this snippet to the functions.php of your wordpress theme will include the specified custom post types within your primary RSS feed.
read moreCreate multiple search templates for custom post types
Adding these snippets to your wordpress theme will enable you to setup multiple search templates for custom post types.
read moreChange custom post type icon for new and edit post pages
Adding this snippet to the functions.php of your wordpress theme will change the default icon on the post edit and new post pages. Don’t forget to change the URL on line 9 to the location of your 24px by 24px icon.
read more












