Manga+Press

Manga+Press Template Tags

Manga+Press Template Tags

A list of available Manga+Press Template Tags

  • Conditional Template Tags

    • is_comic(): Returns true is post contains a comic. Used to detect comic posts from regular posts.
    • is_comic_page(): Returns true if page is the Latest Comic Page.
    • is_comic_archive_page(): Returns true if page is the Comic Archives Page.
    • is_comic_cat(): Returns true if category is the Comics Category.
    • is_series_cat(): used to detect is category is associated with a series. Deprecated in 2.6.
  • Comic Template Tags

    • get_latest_comic_banner($nav): displays a banner with the most recent comic posted. $nav (boolean) determines whether or not to display navigation, defaults to false.
    • wp_sidebar_comic(): displays a thumbnail and a link back to the most recently uploaded comic.
    • get_comic_post($id): works like the native WordPress function get_post() except it retrieves a specific comic based on $id. *note: could possibly be deprecated in later versions.
    • the_series(): is supposed to work like the WordPress template tag the_category(). Is currently not functional in 2.0 beta. Deprecated in 2.6.
    • get_comic_series($id): retrieves the comic’s series. Is currently not functional in 2.0 beta. Deprecated in 2.6.
    • wp_comic_first(): returns the $id of the first posted comic.
    • wp_comic_last(): returns the $id of the last (most recent) posted comic.
    • wp_comic_navigation(int $post_id, [bool $banner_nav = false], [ $echo = true]): Generates navigation for comic posts.
    • wp_comic_next($id): returnss the $id of the comic after the comic specified by $id.
    • wp_comic_previous($id): retrieves the $id of comic before the comic specified by $id.
    • wp_comic_category_id(): returns the $id of the Comic Category specified in Manga+Press Options.
    • wp_comic_page_id(): returns the $id of the Latest Comic page specified in Manga+Press Options.
    • wp_comic_archive_page_id(): returns the $id of the Latest Comic page specified in Manga+Press Options. *note: the top 3 custom tags are listed as deprecated in the source code; however, I’m going to reconsider as these functions would be of use to theme designers.
    • get_comic_feed($feed = ‘rss2′): returns a url of the feed for the Comic Category specified in Comic Options. Options are rdf, atom, and rss. Defaults to rss2. Deprecated in 2.6.
    • get_series_feed($series, $feed = ‘rss2′): returns a url of the feed for the comic series category specified by the category’s id passed by $series. Options are rdf, atom, and rss. Defaults to rss2. Deprecated in 2.6.

One Response to “Manga+Press Template Tags”

  1. [...] Codex for more information on how to create a custom page template. Also, check out my page on Manga+Press’s template tags, and there is a code sample available for download as well. Unfortunately, I’ve been doing [...]