WP: WordPress conditional tags summary
(only works after posts_selection action hook, so not in functions.php?)
See http://codex.wordpress.org/Conditional_Tags