A very simple and short example of a custom post type for wordpress.