WordPress分页不适用于ACF

时间:2017-03-27 13:15:36

标签: php wordpress pagination

当我将永久链接设置为“普通”时,一切正常。 当固定链接设置为/%year%/%monthnum%/%postname%/时,我会在第2页的链接中显示http://baselink/page/2,但仍保留在第一页上。

这是我的分页代码:

$pages = paginate_links( array(
            'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
            'format' => '?paged=%#%',
            'current' => max( 1, $request->get('paged')),
            'total' => $this->config['maxNumPages'],
            'type'  => 'array',
            'prev_next'   => true,
            'prev_text'    => __('« Prev'),
            'next_text'    => __('Next »'),
        )
    );

0 个答案:

没有答案
相关问题