webcomic_archive

Summary:

Displays webcomic archives in a number of different ways.

Tag and base function call:

function webcomic_archive( $args = false ) {
    global $webcomic; echo $webcomic->get_the_webcomic_archive( $args );
}

Examples:

<?php webcomic_archive(); ?>
<?php
$before = 'Bananas';
webcomic_archive( array('format' => 'olist', 'before' => $before, 'order' => 'DESC') );
?>
<?php webcomic_archive( 'format=olist&before=' . $before ); ?>
<?php
$args = array (
    'format' => 'olist',
    'before' => 'Bananas',
);

webcomic_archive( $args );
?>

Arguments:

  • args (array) optional
    An array containing the various archive options:
  • format‘ (str)
    How to display the results.
    default: false; can be ‘ulist’, ‘olist’, ‘dropdown’, ‘grid’ (if group is not ‘collection’, ‘storyline’, or ‘character’), or false.
  • group‘ (str)
    How to group the webcomics.
    default: false; can be ‘day’, ‘month, ‘year’, ‘collection’, ‘storyline’, or ‘character’.
  • separator‘ (str)
    Text inserted between terms when format is ‘false’.
    default: false; can be any string.
  • before‘ (str)
    Text inserted before output.
    default: false; can be any string.
  • after‘ (str)
    Text inserted after output.
    default: false; can be any string.
  • image‘ (str)
    Set what thumbnails to display for post links if format is not ‘dropdown’.
    default: false; if format is not ‘dropdown’ can be ‘full’, ‘large’, ‘medium’, or ‘small’.
  • group_image‘ (str)
    Set what thumbnail to display for term links if format is not ‘dropdown’.
    default: false; if format is not ‘dropdown’ can be ‘full’, ‘large’, ‘medium’, or ‘small’.
  • label‘ (str)
    Text for first null option when ‘format’ is ‘dropdown’.
    default: false; can be any string.
  • limit‘ (int)
    Limit number of webcomics per term.
    default: false; can be any integer.
  • group_limit‘ (int)
    Limit number of terms.
    default: false; can be any integer.
  • show_count‘ (bool)
    Show the term post count.
    default: false; can be true or false.
  • show_description‘ (bool)
    Show the description for each term.
    default: false; can be true or false
  • hierarchical‘ (bool)
    Show items hierarchically.
    default: true; can be true or false.
  • hide_empty‘ (bool)
    Hide empty terms.
    default: true; can be true or false.
  • order‘ (str)
    The order to display the webcomics.
    default: ‘ASC‘; can be ‘DESC’ or ‘ASC’.
  • group_order‘ (str)
    The order to display the terms.
    default: ‘ASC‘; can be ‘DESC’ or ‘ASC’.
  • term_group‘ (int)
    Limits shown webcomics to only this term.
    default: false; can be any integer.
  • last_only‘ (bool)
    Only show webcomics in the last returned term.
    default: false; can be true or false.
Share
Facebook Twitter Digg Stumble Delicous Email