first|previous|random|next|last_webcomic_storyline_link

Summary:

Displays a proper link relative to the current or specified storyline.

Tags and base function calls:

function random_webcomic_storyline_link( $format = '%link', $link = '%label', $term = false, $orderby = false, $hide_empty = true ) {
    global $webcomic; echo $webcomic->get_relative_webcomic_term_link( 'random', 'webcomic_storyline', $format, $link, $term, $orderby, $hide_empty );
}

function first_webcomic_storyline_link( $format = '%link', $link = '%label', $term = false, $orderby = false, $hide_empty = true ) {
    global $webcomic; echo $webcomic->get_relative_webcomic_term_link( 'first', 'webcomic_storyline', $format, $link, $term, $orderby, $hide_empty );
}

function last_webcomic_storyline_link( $format = '%link', $link = '%label', $term = false, $orderby = false, $hide_empty = true ) {
    global $webcomic; echo $webcomic->get_relative_webcomic_term_link( 'last', 'webcomic_storyline', $format, $link, $term, $orderby, $hide_empty );
}

function previous_webcomic_storyline_link( $format = '%link', $link = '%label', $term = false, $orderby = false, $hide_empty = true ) {
    global $webcomic; echo $webcomic->get_relative_webcomic_term_link( 'previous', 'webcomic_storyline', $format, $link, $term, $orderby, $hide_empty );
}

function next_webcomic_storyline_link( $format = '%link', $link = '%label', $term = false, $orderby = false, $hide_empty = true ) {
    global $webcomic; echo $webcomic->get_relative_webcomic_term_link( 'next', 'webcomic_storyline', $format, $link, $term, $orderby, $hide_empty );
}

Examples:

<?php first_webcomic_storyline_link(); ?>

<?php random_webcomic_storyline_link( '%link' ,'Random Banana', array( 27, 74, 89 ), 'name', false ); ?>

Arguments:

  • format (str) optional
    Format of the link.
    default: ‘%link‘; Should be ‘%link’.
  • link (str) optional
    The displayed link text.
    default: ‘%label‘; Can be ‘%label’, ‘%name’, ‘%date’, ‘%thumb-small-#’, ‘%thumb-medium-#’, ‘%thumb-large-#’, ‘%thumb-full-#’, or any other text.
  • term (int|str|array) optional
    The term(s) to limit the results to. This must be set if the function is used on a page other than a storyline taxonomy archive.
    default: false; Can use any ID (int) or slug (str) or array of such that corresponds to an existing term (storyline).
  • orderby(str) optional
    The order of your linked storylines.
    default: false; Can be ‘name’, ‘count’, ‘term_group’, ‘slug’, or ‘term_group_name’.
  • hide_empty(bool) optional
    Whether to exclude empty storylines.
    default: true; Can be true or false.
Share
Facebook Twitter Digg Stumble Delicous Email