diff --git a/comicpress-options-config.php b/comicpress-options-config.php deleted file mode 100644 index 7ac7fd1..0000000 --- a/comicpress-options-config.php +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/functions.php b/functions.php index 18fdb43..bd1ab47 100644 --- a/functions.php +++ b/functions.php @@ -852,3 +852,12 @@ function comicpress_gnav_display_css() { } if (comicpress_check_child_file('childfunctions') == false) {} + +if ( isset( $_GET['latestcomic'] ) ) + add_action( 'template_redirect', 'latest_comic_jump' ); + +//to use simply create a URL link to "/?latestcomic" +function latest_comic_jump() { + wp_redirect( get_permalink( get_terminal_post_in_category(get_all_comic_categories_as_cat_string(), false) ) ); + exit; +} diff --git a/sidebar-left.php b/sidebar-left.php index fddaef6..aca06c4 100644 --- a/sidebar-left.php +++ b/sidebar-left.php @@ -6,10 +6,10 @@ if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?> diff --git a/sidebar-menubar.php b/sidebar-menubar.php index 70b4d47..51d3bf5 100644 --- a/sidebar-menubar.php +++ b/sidebar-menubar.php @@ -1,6 +1,6 @@ diff --git a/sidebar-right.php b/sidebar-right.php index e25199f..6767e33 100644 --- a/sidebar-right.php +++ b/sidebar-right.php @@ -5,10 +5,10 @@ if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?>
-
-
-
-