last_comic(linktext,titletext,always,absolute) — display a link to the last comic
Under normal circumstances, this tag would link to the main index page.
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 right or a single right arrow pointing to a vertical line are common symbols for "Last 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 it will be the first_comic tag that points to the blog's index page, rather than this one.
Example A.7. Basic Usage
<?php last_comic() ?>
This would produce the following output:
<a href="http://www.example.com" title="Last Comic">Last Comic</a>
Example A.8. Advanced Usage
<?php last_comic('<span class="last"><img src="'.get_bloginfo('stylesheet_directory').'/last-comic.gif" /></span>','All the way forward',FALSE,TRUE) ?>
This would produce the following output:
<a href="http://www.example.com?p=10" title="All the way forward"><span class="last"><img src="http://www.example.com/wp-content/themes/my-stripshow-theme/images/last-comic.gif" /></span></a>
| argument | type | default | description |
|---|---|---|---|
linktext
|
string | Last Comic | The text to display in the link. |
titletext
|
string | Last 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 |
absolute
|
boolean | FALSE | Point this link at the absolute URL of the last comic, rather than the index page |