최신글은 게시판 스킨의 일부입니다. 최신글만 별도로 만들 수도 있습니다.
wp-content/plugins/kboard/skin/summer/latest.php
<div class="summer-latest-wrap">
<ul>
<?php while($content = $list->hasNext()):?>
<li>
<a href="<?php echo $url->getDocumentURLWithUID($content->uid)?>">
<span class="cat"><?php echo $content->category1?></span><div class="subject"><?php echo wp_html_excerpt($content->title, 30)?></div>
<span class="kboard-comments-count"><?php echo $content->getCommentsCount()?></span>
<?php if($content->isNew()):?><span class="ico-new">N</span><?php endif?>
<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
</a>
</li>
<?php endwhile?>
</ul>
</div>
위 파일명으로만 만들고 적용하셔도 동작 됩니다.
링크 : <?php echo $url->getDocumentURLWithUID($content->uid)?>
카테고리 출력 : <?php echo $content->category1?>
제목 : <?php echo wp_html_excerpt($content->title, 30)?>
제목 그대로 : <?php echo $content->title ?>
댓글 갯수 출력 : <?php echo $content->getCommentsCount()?>
새글표시출력 : <?php if($content->isNew()):?><span class="ico-new">N</span><?php endif?>
비밀글출력 : <?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
날짜 출력 : <?php echo $content->getDate()?>