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.
-
Comic Template Tags
- mangapress_comic_navigation(WP_Query $query = null, $args = array(), $echo = true): Comic navigation function. Used for outputting comic navigation in posts.
-
Manga+Press Custom Hooks and Filters (for developers)
- mangapress_option_fields : can be used for modifying array of options fields. Must be run on admin_init.
- mangapress_option_section : can be used to change the available sections/tabs on the Manga+Press Options page (not tested).
Deprecated Tags
Do not use! These tags have been deprecated and removed.
- is_comic_cat(): Returns true if category is the Comics Category. Deprecated and removed in 2.7
- is_series_cat(): used to detect is category is associated with a series. Deprecated in 2.6.
- 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. Deprecated in 2.7.
- wp_sidebar_comic(): displays a thumbnail and a link back to the most recently uploaded comic. Deprecated in 2.7.
- get_comic_post($id): works like the native WordPress function
get_post()except it retrieves a specific comic based on$id. Deprecated in 2.7. - 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
$idof the first posted comic. Deprecated in 2.7. - wp_comic_last(): returns the
$idof the last (most recent) posted comic. - wp_comic_navigation(int $post_id, [bool $banner_nav = false], [ $echo = true]): Generates navigation for comic posts. Deprecated in 2.7.
- wp_comic_next($id): returnss the
$idof the comic after the comic specified by$id. Deprecated in 2.7. - wp_comic_previous($id): retrieves the
$idof comic before the comic specified by$id. Deprecated in 2.7. - wp_comic_category_id(): returns the
$idof the Comic Category specified in Manga+Press Options. Deprecated in 2.7. - wp_comic_page_id(): returns the $id of the Latest Comic page specified in Manga+Press Options. Deprecated in 2.7.
- wp_comic_archive_page_id(): returns the $id of the Latest Comic page specified in Manga+Press Options. Deprecated in 2.7.
- 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
August 2, 2009 @ 10:58 pm by admin
1 Comment »
[...] 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 [...]