<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() ?>">@@##@@content); ?>" /> </a></figure>
</div>
<?php endwhile; ?>
</section>
这是调用的代码,首页只显示5个,我现在要显示多个怎么表示?
求解。
<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() ?>">@@##@@content); ?>" /> </a></figure>
</div>
<?php endwhile; ?>
</section>
%E8%BF%99%E6%98%AF%E8%B0%83%E7%94%A8%E7%9A%84%E4%BB%A3%E7%A0%81%EF%BC%8C%E9%A6%96%E9%A1%B5%E5%8F%AA%E6%98%BE%E7%A4%BA5%E4%B8%AA%EF%BC%8C%E6%88%91%E7%8E%B0%E5%9C%A8%E8%A6%81%E6%98%BE%E7%A4%BA%E5%A4%9A%E4%B8%AA%E6%80%8E%E4%B9%88%E8%A1%A8%E7%A4%BA%EF%BC%9F
%E6%B1%82%E8%A7%A3%E3%80%82
已经完美解决~~
<?php $this->widget('Widget_Contents_Post_Recent', 'pageSize=8', 'mid=1')->to($post); ?>
<?php while($post->next()): ?>
我是内容
<?php endwhile; ?>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号