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

113次阅读

共计 494 个字符,预计需要花费 2 分钟才能阅读完成。


$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>

正文完
 0