Check If Post Type Supports Archives

Checks if a post type supports archives and returns boolean. Handy if you are playing with custom post types and page templates.

Source: http://gist.github.com/joshuadavidnelson/8321291

Tags: ,