wp-content/themes/twentythirteen/functions.php:500Displays navigation to next/previous set of posts when applicable.
function twentythirteen_paging_nav() { global $wp_query; // Don't print empty markup if there's only one page. if ( $wp_query->max_num_pages < 2 ) { return; } $order = get_query_var( 'order', 'DESC' ); $is_desc = 'DESC' === $order; $new_posts_text = __( 'Newer posts <span class="meta-nav">→</span>', 'twentythirteen' ); $old_posts_text = __( '<span class="meta-nav">←</span> Older posts', 'twentythirteen' ); $prev_link = $is_desc ? get_next_posts_link( $old_posts_text ) : get_previous_posts_link( $old_posts_text ); $next_link = $is_desc ? get_previous_posts_link( $new_posts_text ) : get_next_posts_link( $new_posts_text ); ?> <nav class="navigation paging-navigation"> <h1 class="screen-reader-text"> <?php /* translators: Hidden accessibility text. */ _e( 'Posts navigation', 'twentythirteen' ); ?> </h1> <div class="nav-links"> <?php if ( $prev_link ) : ?> <div class="nav-previous"> <?php echo $prev_link; ?> </div> <?php endif; if ( $next_link ) : ?> <div class="nav-next"> <?php echo $next_link; ?> </div> <?php endif; ?> </div><!-- .nav-links --> </nav><!-- .navigation --> <?php }Introduced in Twenty Thirteen 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentythirteen/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.