> For the complete documentation index, see [llms.txt](https://mangapress.gitbook.io/manga-press-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mangapress.gitbook.io/manga-press-documentation/template-tags/mangapress-comic-navigation.md).

# mangapress\_comic\_navigation

## mangapress\_comic\_navigation($args, $echo)

Generates an unordered list of links for navigating between comic posts. Should be used inside a loop.

### Parameters

* `$args (array)` Navigation output arguments
* `$echo (boolean)` Specifies whether to echo comic navigation or return it as a string. Defaults to true.

#### Parameters for `$args`

* `$container`: Wrapper tag for comic navigation. Defaults to nav. Use false for no container.
* `$container_attr`: Attributes for container tag. Can be used for setting custom IDs or classes. Defaults to `array('id' => 'comic-navigation')`.
* `$items_wrap`: Navigation items wrapper. Defaults to `<ul%1$s>%2$s</ul>`. Can be useful for those situations when you don't want the navigation to be an unordered list.
* `$items_wrap_attr`: Same as $container\_attr.
* `$link_wrap`: Wrapper tag for navigation link. Defaults to li.
* `$link_before`: Content before navigation link (but inside tag specified by `$link_wrap`).
* `$link_after`: Content after navigation link (but inside tag specified by `$link_wrap`).

### Example

Short example of using `mangapress_comic_navigation()`:

```php
<div class="container">
    <?php if (have_posts()): ?> 

        <div class="hfeed">
        <?php while (have_posts()): the_post() : ?>

            <div <?php post_class(); ?>>
                <?php mangapress_comic_navigation($args); ?>

                <h2><?php the_title(); ?></h2>

                <div class="entry-content">
                    <?php the_post_thumbnail(); ?>
                </div>
            </div>            

        <?php endwhile; ?> 
        </div>

    <?php endif; ?>    
</div>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://mangapress.gitbook.io/manga-press-documentation/template-tags/mangapress-comic-navigation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
