rename postType to posttype
add ability for custom templates