previous_comic

previous_comic(linktext,titletext,always) — display a link to the previous comic

Description

Displays a link to the previous comic in the archive. If the reader is already viewing the first 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 left is a common symbol for "Previous Comic."

Usage

Example A.3. Basic Usage

<?php previous_comic() ?>

This would produce the following output:

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

Example A.4. Advanced Usage

<?php previous_comic('<span class="previous"><img src="'.get_bloginfo('stylesheet_directory').'/previous-comic.gif" /></span>','Back one',FALSE) ?>

This would produce the following output:

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

Arguments

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