# Conditional Tags

Manga+Press has a few conditional template tags that work similar to Template Tags in WordPress

## is\_comic()

Returns `true` if post is a comic, otherwise returns `false`. Used to detect comic posts from regular posts.

Short example of using `is_comic()`:

```php
<?php
    if (is_comic()) {
        // do something for comic posts here
    } else {
        // ignore for all other posts
    }
?>
```

## is\_comic\_page() \* behavior changed in 4.0

Returns `true` if page is a Comic Page, otherwise returns `false`.

Short example of using `is_comic_page()`:

```php
<?php
    if (is_comic_page()) {
        // do something for Comic Page here
    } else {
        // ignore for all other posts
    }
?>
```

## is\_latest\_comic\_page()

Returns `true` if the page is the Latest Comic page, otherwise `false`

Short example of using `is_latest_comic_page()`:

```php
<?php
if (is_latest_comic_page()) {
// do something for Latest Comic Page here
} else {
// ignore for all other posts
}
?>
```

## is\_comic\_archive\_page()

Returns `true` if page is the Comic Archive Page, otherwise returns `false`.

Short example of using `is_comic_archive_page()`:

```php
<?php
if (is_comic_archive_page()) {
// do something for Comic Archive Page here
} else {
// ignore for all other posts
}
?>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mangapress.gitbook.io/manga-press-documentation/template-tags/conditional-tags.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
