Manga+Press Documentation
  • Introduction
  • Guides
    • Frequently Asked Questions
    • Contributing
  • Getting Started
    • Installation
    • Configuring Manga+Press
    • Using Manga+Press
    • Theme Customization
  • Developer API
    • Image Sizes
  • Template Tags
    • Conditional Tags
    • mangapress_comic_navigation
    • mangapress_get_calendar
    • mangapress_theme_supports_cover_images
    • mangapress_has_cover_image
    • mangapress_the_comic_cover
  • Functions
    • mangapress_comic_navigation
    • mangapress_day_link
    • mangapress_end_latest_comic
    • mangapress_get_calendar
    • mangapress_get_next_post_in_loop
    • mangapress_get_previous_post_in_loop
    • mangapress_month_link
    • mangapress_start_latest_comic
  • Filters
    • Manga+Press Template API — Filters
    • mangapress_archive_gallery_style
    • mangapress_options_fields
    • mangapress_comic_front_slug
    • mangapress_options_sections
    • mangapress_comic_navigation_args
    • mangapress_comic_navigation_items
    • mangapress_get_adjacent_comic_args
    • mangapress_get_boundary_comic_args
    • mangapress_archive_gallery_style
    • mangapress_comic_front_slug
    • mangapress_options_fields
  • Actions
    • Manga+Press Template API — Actions
    • save_post_mangapress_comic
    • mangapress_comic_page_content
    • mangapress_theme_compatible-$theme
Powered by GitBook
On this page
  • mangapress_comic_navigation($args, $echo)
  • Parameters
  • Example
  1. Template Tags

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():

<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>
PreviousConditional TagsNextmangapress_get_calendar

Last updated 6 years ago