# 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: 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/functions/mangapress-comic-navigation.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.
