http://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2
reference/wordpress/custom-post-type-permalinks