Support default post type in single item view
Add method for appending template to reduce redundant code.
Make it work in post type archive.