小夜博客同tags调用其它几个文章

2015-07-25

          <?php $this->related(3)->to($relatedPosts); ?>
          <?php while ($relatedPosts->next()): ?>
          	<div class="searchbox">
          	<?php if (isset($relatedPosts->fields->e)): ?><a href="<?php $relatedPosts->permalink() ?>"><img src="http://static.vpsmm.com/logo/<?php if (isset($relatedPosts->fields->x)): ?>x/<?php endif; ?><?php $relatedPosts->fields->e(); ?>.jpg_a.png" class="searchimg" height="100" width="100""></a><?php else: ?><?php if (isset($relatedPosts->fields->d)): ?><a href="<?php $relatedPosts->permalink() ?>"><img src="http://static.vpsmm.com/logo/<?php $relatedPosts->fields->d(); ?>.jpg_a.png" class="searchimg" height="100" width="100""></a><?php else: ?><a href="<?php $relatedPosts->permalink() ?>"><img src="http://static.vpsmm.com<?php Fimg_Plugin::
showfimg($relatedPosts->cid); ?>_a.png" class="searchimg" height="100" width="100"></a><?php endif; ?><?php endif; ?>
           <p class="sbtitle yahei"><a href="<?php $relatedPosts->permalink() ?>"><?php $relatedPosts->title() ?></a></p>
		   <p class="sbtxt"><?php $relatedPosts->excerpt(130, '……'); ?></p>
		   <div class="sbda pack-new"><?php $relatedPosts->date(); ?></div><div class="sbtag"><?php $relatedPosts->tags(' , ', true, '暂无标签'); ?></div>
          	</div>
          <?php endwhile; ?>