From 6dca952829facdb1072bc11e4e75fa63affd091c Mon Sep 17 00:00:00 2001 From: Frumph Date: Sat, 19 Sep 2015 08:05:52 -0700 Subject: [PATCH] make sure landing pages comic and comic blog post don't show up if the archive is not on page 1 --- functions/injections.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/injections.php b/functions/injections.php index 2bbae47..822e8fd 100644 --- a/functions/injections.php +++ b/functions/injections.php @@ -60,7 +60,7 @@ function ceo_display_comic_area() { ceo_display_comic_wrapper(); endwhile; ceo_unprotect(); - } elseif (is_archive() && (isset($wp_query->query_vars['taxonomy']) && isset($wp_query->query_vars['chapters'])) && ($wp_query->query_vars['taxonomy'] == 'chapters') && function_exists('comicpress_themeinfo') && ceo_pluginfo('enable_chapter_landing')) { + } elseif (is_archive() && (isset($wp_query->query_vars['taxonomy']) && isset($wp_query->query_vars['chapters'])) && ($wp_query->query_vars['taxonomy'] == 'chapters') && function_exists('comicpress_themeinfo') && ceo_pluginfo('enable_chapter_landing') && !is_paged()) { ceo_protect(); $order = (ceo_pluginfo('enable_chapter_landing_first')) ? 'asc' : 'desc'; $comic_args = array( @@ -302,7 +302,7 @@ function ceo_display_comic_post_home() { wp_reset_query(); if(class_exists('Jetpack') && Jetpack::is_module_active('minileven') && wp_is_mobile()) echo ''; echo '
'; - } elseif (is_archive() && (isset($wp_query->query_vars['taxonomy']) && isset($wp_query->query_vars['chapters'])) && ($wp_query->query_vars['taxonomy'] == 'chapters') && function_exists('comicpress_themeinfo')) { + } elseif (is_archive() && (isset($wp_query->query_vars['taxonomy']) && isset($wp_query->query_vars['chapters'])) && ($wp_query->query_vars['taxonomy'] == 'chapters') && function_exists('comicpress_themeinfo') && !is_paged()) { if (ceo_pluginfo('enable_chapter_landing') && ceo_pluginfo('enable_blog_on_chapter_landing')) { $order = (ceo_pluginfo('enable_chapter_landing_first')) ? 'asc' : 'desc'; $comic_args = array(