first_comic

first_comic(linktext,titletext,always) — display a link to the first comic

Description

This tag displays a link to the first 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 double arrow pointing left or a single left arrow pointing to a vertical line () for "Previous Comic."

The Index Page option on the Options page can modify the behavior of this tag. If this option is set to "First Comic," then this tag points to your index page by default.

Usage

Example A.1. Basic Usage

<?php first_comic() ?>

This would produce the following output:

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

Example A.2. Advanced Usage

<?php first_comic('<span class="first"><img src="'.get_bloginfo('stylesheet_directory').'/first-comic.gif" /></span>','All the way back',FALSE) ?>

This would produce the following output:

<a href="http://www.example.com?p=1" title="All the way back"><span class="first"><img src="http://www.example.com/wp-content/themes/my-stripshow-theme/images/first-comic.gif" /></span></a>

Arguments

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