<body>
<code> <section id="photo-grid"> <?php while($this->next()): ?> <div class="photo-item">permalink() ?>"> <figure class="image-container">permalink() ?>">content); ?>" /> </figure> </div> <?php endwhile; ?> </section> </code>
这是调用的代码,首页只显示5个,我现在要显示多个怎么表示?
求解。
本&文来源gaodai^.ma#com搞#代!码网
搞gaodaima代码
回复内容:
<body>
<code> <section id="photo-grid"> <?php while($this->next()): ?> <div class="photo-item">permalink() ?>"> <figure class="image-container">permalink() ?>">content); ?>" /> </figure> </div> <?php endwhile; ?> </section> </code>
这是调用的代码,首页只显示5个,我现在要显示多个怎么表示?
求解。
<body>
已经完美解决~~
<code> <?php $this->widget('Widget_Contents_Post_Recent', 'pageSize=8', 'mid=1')->to($post); ?> <?php while($post->next()): ?> 我是内容 <?php endwhile; ?> </code>