乐趣区

wordpress-wppagenavi-插件-只获取-上一页按钮


$option = [
                'pages_text' => null,
                'current_text' => null,
                'page_text' => null,
                'first_text' => null,
                'last_text' => null,
                'prev_text' => null,
                'next_text' => null,
                'dotleft_text' => null,
                'dotright_text' => null,
                'num_pages' => null,
                'num_larger_page_numbers' => null,
                'larger_page_numbers_multiple' => null,
                'always_show' => 0,
                'use_pagenavi_css' => 0,
                'style' => 1,
            ];
            ?>
            <div>
                    <?php
                    // ページ送り
                    if(function_exists('wp_pagenavi'))
                        $option['next_text'] = null;
                        $option['prev_text'] = '上一页';
                        wp_pagenavi(array('query' => $wp_query,'options' => $option) );
                    ?>
            </div>
退出移动版