more ComicBlogPostWidget.inc fixes to check if its in the comic category or not
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
36a8a1a2b6
commit
96b5db1227
|
@ -44,9 +44,9 @@ class ComicPressComicBlogPostWidget extends WP_Widget {
|
|||
UnProtect();
|
||||
wp_reset_query();
|
||||
} else {
|
||||
if (!empty($post->post_content)) {
|
||||
if (!empty($post->post_content) && in_comic_category()) {
|
||||
echo $before_widget;
|
||||
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
|
||||
$title = empty($instance['title']) ? the_title() : apply_filters('widget_title', $instance['title']);
|
||||
if ( !empty( $title ) ) { echo "<div class=\"comic-post-header\">".$title."</div>\r\n"; }
|
||||
the_content();
|
||||
echo $after_widget;
|
||||
|
|
Loading…
Reference in New Issue