diff --git a/archive.php b/archive.php index dda69d4..45049ee 100644 --- a/archive.php +++ b/archive.php @@ -85,7 +85,9 @@ // Show an optional term description. $term_description = term_description(); if ( ! empty( $term_description ) ) : - '
'; + echo '
'; + echo term_description(); + echo '
'; endif; ?>
@@ -106,7 +108,11 @@ - + _x( '←', 'Previous page link', 'strip' ) . '' . __( 'Previous page', 'strip' ) . '', + 'next_text' => '' . __( 'Next page', 'strip' ) . '' . _x( '→', 'Next post link', 'strip' ), + 'before_page_number' => '' . __( 'Page', 'strip' ) . ' ', + ) ); ?> diff --git a/inc/template-tags.php b/inc/template-tags.php index 9b2bc12..6d8787b 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -28,14 +28,8 @@ function strip_header_background() { * @param $string $nav_id strip_content_nav. */ function strip_content_nav( $nav_id ) { - global $wp_query; - // Don't print empty markup on single pages if there's nowhere to navigate. - // Don't print empty markup in archives if there's only one page. - if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) { - return; - } - $nav_class = ( is_single() || is_tax( 'story' ) ) ? 'post-navigation' : 'paging-navigation' ; + $nav_class = ( is_single() || is_post_type( 'comic' ) ) ? 'post-navigation' : 'paging-navigation' ; ?>
@@ -59,16 +53,6 @@ function strip_content_nav( $nav_id ) { %link
', '' . _x( '←', 'Previous post link', 'strip' ) . ' %title' ); ?> %link', '%title ' . _x( '→', 'Next post link', 'strip' ) . '' ); ?> - max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for blog, archive, and search pages. ?> - - - - - - - - - diff --git a/index.php b/index.php index 4f2d85b..a3b5461 100644 --- a/index.php +++ b/index.php @@ -36,7 +36,13 @@ - +
+ _x( '←', 'Previous page link', 'strip' ) . '' . __( 'Previous page', 'strip' ) . '', + 'next_text' => '' . __( 'Next page', 'strip' ) . '' . _x( '→', 'Next post link', 'strip' ), + 'before_page_number' => '' . __( 'Page', 'strip' ) . ' ', + ) ); ?> +
diff --git a/search.php b/search.php index ce61ccd..4ca5544 100644 --- a/search.php +++ b/search.php @@ -25,7 +25,11 @@ endwhile; - strip_content_nav( 'nav-below' ); + the_posts_pagination( array( + 'prev_text' => _x( '←', 'Previous page link', 'strip' ) . '' . __( 'Previous page', 'strip' ) . '', + 'next_text' => '' . __( 'Next page', 'strip' ) . '' . _x( '→', 'Next post link', 'strip' ), + 'before_page_number' => '' . __( 'Page', 'strip' ) . ' ', + ) ); else : ?>