March 8, 2010 @ 3:55 pm by admin
Filed under: Template Tags
Add Comment »
Description:
Generates navigation for comic posts.
Usage:
<?php wp_comic_navigation( int $post_id, [bool $banner_nav = false], [ $echo = true]); ?>
Parameters:
$post_id (integer) the ID of the comic post.
$banner_nav (boolean) not used. Defaults to false.
$echo (boolean) Specifies whether to echo comic navigation or return it as a string. Defaults to true.
@ 3:29 pm by admin
Filed under: Template Tags
Add Comment »
Description:
Displays a thumbnail and a link back to the most recently uploaded comic.
Usage:
<?php wp_sidebar_comid(); ?>
Parameters:
None.
@ 3:21 pm by admin
Filed under: Template Tags
Add Comment »
Description:
Displays a banner with the most recent comic posted. Can be used anywhere in a template.
Usage:
<?php get_latest_comic_banner([ bool $nav = false]); ?>
Parameters:
$nav (boolean) determines whether or not to display navigation, defaults to false.
August 2, 2009 @ 10:58 pm by admin
Filed under: Help
Add Comment »
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.
@ 10:14 pm by admin
Filed under: Help Tags: Help
Add Comment »
Now that you have activated the plugin, there are a few things you are going to need to know depending on whether you’re using your own theme or if you’re modifying a 3rd party Wordpress Theme.
Getting Started
Read this section first! To get started:
- Create a new category and two new pages — or feel free to use existing pages and categories.
- Go to the Manga+Press Options page and set your comic category and latest comic and comic archive pages to the categories and pages you wish to display your comics on.
- Activate the “Automatically insert comic navigation code into comic posts” option and
- If you wish to exclude your comic posts from appearing in your regular blog, then select the “Exclude comic category from front page” option.
That’s it! You’re done!
Modifying a 3rd party Theme
You might not have to modify the theme in question. Activate the “Automatically insert comic navigation code into comic posts” option. It’s on the first tab of the Manga+Press Options page. Click that and also select “Exclude comic category from front page,” then click the Update Options button. If everything appears okay, then you shouldn’t have to modify anything. If there are some glitches, then you may to adjust your theme. Check out the section on Manga+Press’s Template Tags to get started.