Example #1
0
<?php

get_header();
include get_template_directory() . '/layout-head.php';
?>
	
<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        if (in_comic_category()) {
            if (!$comicpress_options['disable_comic_blog_single']) {
                comicpress_display_post();
                $cur_date = mysql2date('Y-m-j', $post->post_date);
                $next_comic = get_next_comic();
                $next_comic = (array) $next_comic;
                $next_date = mysql2date('Y-m-j', $next_comic['post_date']);
                $blog_query = 'showposts=' . $comicpress_options['blog_postcount'] . '&order=asc&cat=-' . exclude_comic_categories();
            }
        } else {
            comicpress_display_post();
        }
    }
    ?>
	
	<?php 
    if (function_exists('the_project_wonderful_ad')) {
        the_project_wonderful_ad('blog');
    }
    ?>
	<?php 
Example #2
0
/**
 * This is function get_next_comic_permalink
 *
 * @return mixed false if no next comic permalink, else return the permalink
 *
 */
function get_next_comic_permalink()
{
    $next_comic = get_next_comic();
    if (is_object($next_comic)) {
        if (isset($next_comic->ID)) {
            return get_permalink($next_comic->ID);
        }
    }
    return false;
}