Making WordPress.org


Ignore:
Timestamp:
01/29/2018 07:05:22 PM (8 years ago)
Author:
obenland
Message:

Showcase: Use built-in page navigation.

Removes the need for a plugin to provide a paginated navigation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/archive.php

    r6273 r6456  
    2929            <?php endwhile; // have_posts ?>
    3030
    31             <?php if ( 1 != $wp_query->max_num_pages || function_exists( 'wp_page_numbers' ) ) { wp_page_numbers(); } ?>
     31            <?php
     32                the_posts_pagination( [
     33                    'mid_size' => 2,
     34                ] );
     35            ?>
    3236
    3337        <?php else : // have_posts ?>
Note: See TracChangeset for help on using the changeset viewer.