is_comic

is_comic() — determine whether the current post is a comic

Description

A conditional tag, which tells whether or not the currently-viewed post is a comic. Returns TRUE if it is, FALSE if not.

This tag can be used either inside or outside of the WordPress loop. If used outside, it uses several pieces of information to decide what the "current post" is and whether it is a comic. It will always return TRUE on the index page, for example.

Usage

Example A.25. Basic Usage

<?php if (is_comic()) {
	show_comic();
	}
else {
	echo "This is not a comic.";
	}