php - typecho归档页面如何分页
阿神
阿神 2017-04-11 10:37:20
0
1
766

typecho 的归档页面文章输出我是这样写的:

<?php
                    $this->widget('Widget_Contents_Post_Recent', 'pageSize=1000')->to($archives);
                    $year=0; $i=0; $j=0;
                    while($archives->next()):
                        $year_tmp = date('Y',$archives->created);
                        $y=$year;
                        if ($year != $year_tmp && $year > 0) $output .= '<p></p>';
                        if ($year != $year_tmp) {
                            $year = $year_tmp;
                            $output = '<h2 class="archive-year">'. $year .'</h2>';
                        }
                        $output .= '<a class="transition archive-iterm" href="'.$archives->permalink .'"><h3 class="archive-title">'. $archives->title .'</h3><p class="archive-date">'.date('F jS ',$archives->created).'</p></a>';
                    endwhile;
                    
                    echo $output;
                ?>

但是不能分页,请问如何分页呢?

阿神
阿神

闭关修行中......

모든 응답(1)
伊谢尔伦

什么样的分页?

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!