diff --git a/index.php b/index.php index 32449c9..2a9a36b 100644 --- a/index.php +++ b/index.php @@ -2,12 +2,15 @@ is_archive = false; if (have_posts()) { - comicpress_display_post(); + while (have_posts()) : the_post(); + comicpress_display_post(); + endwhile; } Restore(); UnProtect(); diff --git a/widgets/ComicBlogPostWidget.inc b/widgets/ComicBlogPostWidget.inc index 1feb9d7..a79e3ce 100644 --- a/widgets/ComicBlogPostWidget.inc +++ b/widgets/ComicBlogPostWidget.inc @@ -7,7 +7,7 @@ Author: Philip M. Hofer (Frumph) Version: 1.05 Author URI: http://frumph.net/ -*/ +*/ class ComicPressComicBlogPostWidget extends WP_Widget { @@ -20,15 +20,37 @@ class ComicPressComicBlogPostWidget extends WP_Widget { function widget($args, $instance) { global $post, $wp_query; - if (!is_home() && $instance['onlyhome']) return; - if (is_page() || is_search() || is_archive()) return; + if (!is_home() && $instance['onlyhome'] || (is_page() || is_archive() || is_search())) return; extract($args, EXTR_SKIP); - if (!empty($post->post_content)) { - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo "