next_comic

next_comic(linktext,titletext,always) — display a link to the next comic

Description

Displays a link to the next comic in the archive. If the reader is already viewing the last comic, displays nothing.

The linktext argument can contain HTML code, and it's not uncommon to see <img> tags used therein, to display arrows. A single arrow pointing right is a common symbol for "Next Comic."

Usage

Example A.5. Basic Usage

<?php next_comic() ?>

This would produce the following output:

<a href="http://www.example.com?p=7" title="Next Comic">Next Comic</a>

Example A.6. Advanced Usage

<?php next_comic('<span class="next"><img src="'.get_bloginfo('stylesheet_directory').'/next-comic.gif" /></span>','Forward one',FALSE) ?>

This would produce the following output:

<a href="http://www.example.com?p=1" title="Forward one"><span class="next"><img src="http://www.example.com/wp-content/themes/my-stripshow-theme/images/next-comic.gif" /></span></a>

Arguments

argument type default description
linktext string Next Comic The text to display in the link.
titletext string Next Comic Text to place in the link's TITLE tag
always boolean FALSE Display this link regardless of whether user is already browsing the last comic