typecho怎么调用图片显示数量?

新手上路,请多包涵
            <section id="photo-grid">
            <?php while($this->next()): ?>
                <div class="photo-item" data-url="<?php $this->permalink() ?>">
                    <figure class="image-container"><a href="<?php $this->permalink() ?>"><img src="<?php echo img_postthumb($this->content); ?>" /> </a></figure>
                </div>
            <?php endwhile; ?>
            </section>
            

这是调用的代码,首页只显示5个,我现在要显示多个怎么表示?
求解。
样式图片

阅读 3.6k
1 个回答
✓ 已被采纳新手上路,请多包涵

已经完美解决~~

 <?php $this->widget('Widget_Contents_Post_Recent', 'pageSize=8', 'mid=1')->to($post); ?>
 <?php while($post->next()): ?>
   我是内容
 <?php endwhile; ?>    

样图

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题