show_previous_comics(howmany,thumbnail,before,after,links,order) — display a series of comics that precede the current comic
This tag shows a series of howmany comics (1 by default) that immediately precede the current comic. This tag is of course limited by your archives; if you specify five comics, and there are only four comics preceding the current comics, then only those four would be shown.
Example A.13. Basic Usage
<?php show_previous_comics() ?>
This would produce the following output:
<img height="285px" width="794px" src="http://www.example.com/wp-content/stripshow_comics/20090213.gif" alt="Comic for February 13,2009" title="Comic for February 13,2009" />
Example A.14. Advanced Usage
<ul> <?php show_previous_comics(3,TRUE,'<li>','</li>') ?> </ul>
This would produce the following output:
<ul> <li><img height="143px" width="397px" src="http://www.example.com/wp-content/stripshow_comics/20090213.gif" alt="Comic for February 13,2009" title="Comic for February 13,2009" /></li> <li><img height="143px" width="397px" src="http://www.example.com/wp-content/stripshow_comics/20090212.gif" alt="Comic for February 12,2009" title="Comic for February 12,2009" /></li> <li><img height="143px" width="397px" src="http://www.example.com/wp-content/stripshow_comics/20090211.gif" alt="Comic for February 11,2009" title="Comic for February 11,2009" /></li> </ul>
| argument | type | default | description |
|---|---|---|---|
howmany
|
integer |
5
|
The number of comics to display |
thumbnail
|
boolean | FALSE | Scale comic images to thumbnail size |
before
|
string | A string to display before each comic. A common use might be an HTML tag such as <li>. | |
after
|
string | A string to display before each comic. A common use might be an HTML tag such as </li>. | |
links
|
boolean | FALSE | If TRUE, will make each comic in the series a clickable link; clicking the link will take the reader to that comic's post page. |
order
|
string | DESC | The order in which to display comics; "ASC" for ascending, "DESC" for descending. |