>백엔드 개발 >PHP 튜토리얼 >typecho怎么调用图片显示数量?

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB원래의
2016-06-06 20:24:541414검색

<code>            <section id="photo-grid">
            <?php while($this->next()): ?>
                <div class="photo-item" data-url="<?php $this->permalink() ?>">
                    <figure class="image-container"><a href="<?php%20%24this->permalink()%20?>"><img  src="<?php%20echo%20img_postthumb(%24this->content);%20?>" alt="typecho怎么调用图片显示数量?" > </a></figure>
                </div>
            <?php endwhile; ?>
            </section>
            </code>

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

回复内容:

<code>            <section id="photo-grid">
            <?php while($this->next()): ?>
                <div class="photo-item" data-url="<?php $this->permalink() ?>">
                    <figure class="image-container"><a href="<?php%20%24this->permalink()%20?>"><img  src="<?php%20echo%20img_postthumb(%24this->content);%20?>" alt="typecho怎么调用图片显示数量?" > </a></figure>
                </div>
            <?php endwhile; ?>
            </section>
            </code>

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

已经完美解决~~

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

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

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.