diff --git a/functions/displaypost.php b/functions/displaypost.php index 31354ee..f5bd7aa 100644 --- a/functions/displaypost.php +++ b/functions/displaypost.php @@ -26,7 +26,8 @@ function comicpress_display_post_thumbnail($is_comic = false) { function comicpress_display_author_gravatar($is_comic = false) { global $post, $wp_query, $comicpress_options; - if (((!$is_comic && $comicpress_options['enable_post_author_gravatar']) || ($is_comic && $comicpress_options['enable_comic_post_author_gravatar'])) && !is_page()) { + if (is_page()) return; + if (((!$is_comic && $comicpress_options['enable_post_author_gravatar']) || ($is_comic && $comicpress_options['enable_comic_post_author_gravatar']))) { $author_get_gravatar = str_replace("alt='", "alt='".get_the_author_meta('display_name')."' title='".get_the_author_meta('display_name'),comicpress_get_avatar(get_the_author_meta('email'), 64)); $author_gravatar = "
\r\n"; echo apply_filters('comicpress_display_author_gravatar', $author_gravatar); @@ -35,7 +36,8 @@ function comicpress_display_author_gravatar($is_comic = false) { function comicpress_display_post_calendar($is_comic = false) { global $post, $wp_query, $comicpress_options; - if ((!$is_comic && $comicpress_options['enable_post_calendar']) || ($is_comic && $comicpress_options['enable_comic_post_calendar']) && !is_page()) { + if (is_page()) return; + if ((!$is_comic && $comicpress_options['enable_post_calendar']) || ($is_comic && $comicpress_options['enable_comic_post_calendar'])) { $post_calendar = "