kboard, card-gallery-v1.4 를 이용하고 있습니다.
https://www.cosmosfarm.com/threads/document/47807
위 링크와 동일하게 작성하여 이용중인데, 각 카테고리에 게시물이 6개 이상 표시가 안됩니다.
1. 각 카테고리 게시물의 갯수를 30개로 지정할 수 있나요?
2. 그 이상일 경우 각 카테고리에 페이징을 추가 할 수 있나요?
<div id="kboard-card-gallery-list">
<?
$category_a_list = new KBContentList($board->id);
$category_a_list->category1('국내 학회');
$category_a_list->getList();
?>
<!-- 리스트 시작 -->
<h3><?php echo $category_a_list->category1; ?></h3>
<ul class="kboard-list">
<?php while($content = $category_a_list->hasNext()):?>
<li class="kboard-list-item">
<a href="<? if ( current_user_can( 'manage_options' ) ) { echo $url->getDocumentURLWithUID($content->uid); }else { echo $content->option->href; }?>" <? if (!current_user_can( 'manage_options' ) ) { ?>target="_blank" <?}?>>
<?php if($content->getThumbnail(253, 98)):?>
<div class="kboard-list-thumbnail" style="background-image:url(<?php echo $content->getThumbnail(253, 98)?>)"></div>
<?php else:?>
<div class="kboard-list-thumbnail" style=""></div>
<?php endif?>
<div class="kboard-list-title"><div class="cut_strings">
<?php echo $content->title?>
<?php echo $content->getCommentsCount()?>
<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
</div></div>
</a>
</li>
<?php endwhile?>
</ul>
<?
$category_b_list = new KBContentList($board->id);
$category_b_list->category1('국외 학회');
$category_b_list->getList();
?>
<h3><?php echo $category_b_list->category1; ?></h3>
<ul class="kboard-list">
<?php while($content = $category_b_list->hasNext()):?>
<li class="kboard-list-item">
<a href="<? if ( current_user_can( 'manage_options' ) ) { echo $url->getDocumentURLWithUID($content->uid); }else { echo $content->option->href; }?>" <? if (!current_user_can( 'manage_options' ) ) { ?>target="_blank" <?}?>>
<?php if($content->getThumbnail(253, 98)):?>
<div class="kboard-list-thumbnail" style="background-image:url(<?php echo $content->getThumbnail(253, 98)?>)"></div>
<?php else:?>
<div class="kboard-list-thumbnail" style=""></div>
<?php endif?>
<div class="kboard-list-title"><div class="cut_strings">
<?php echo $content->title?>
<?php echo $content->getCommentsCount()?>
<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
</div></div>
</a>
</li>
<?php endwhile?>
</ul>
<?
$category_c_list = new KBContentList($board->id);
$category_c_list->category1('협회');
$category_c_list->getList();
?>
<h3><?php echo $category_c_list->category1; ?></h3>
<ul class="kboard-list">
<?php while($content = $category_c_list->hasNext()):?>
<li class="kboard-list-item">
<a href="<? if ( current_user_can( 'manage_options' ) ) { echo $url->getDocumentURLWithUID($content->uid); }else { echo $content->option->href; }?>" <? if (!current_user_can( 'manage_options' ) ) { ?>target="_blank" <?}?>>
<?php if($content->getThumbnail(253, 98)):?>
<div class="kboard-list-thumbnail" style="background-image:url(<?php echo $content->getThumbnail(253, 98)?>)"></div>
<?php else:?>
<div class="kboard-list-thumbnail" style=""></div>
<?php endif?>
<div class="kboard-list-title"><div class="cut_strings">
<?php echo $content->title?>
<?php echo $content->getCommentsCount()?>
<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
</div></div>
</a>
</li>
<?php endwhile?>
</ul>
<!-- 리스트 끝 -->
<!-- 페이징 시작 -->
<div class="kboard-pagination">
<ul class="kboard-pagination-pages">
<?php echo kboard_pagination($list->page, $list->total, $list->rpp)?>
</ul>
</div>
<!-- 페이징 끝 -->
<?php if($board->isWriter()):?>
<!-- 버튼 시작 -->
<div class="kboard-control">
<a href="<?php echo $url->getContentEditor()?>" class="kboard-card-gallery-button-small"><?php echo __('New', 'kboard')?></a>
</div>
<!-- 버튼 끝 -->
<?php endif?>
<?php if($board->contribution()):?>
<div class="kboard-card-gallery-poweredby">
<a href="http://www.cosmosfarm.com/products/kboard" onclick="window.open(this.href);return false;" title="<?php echo __('KBoard is the best community software available for WordPress', 'kboard')?>">Powered by KBoard</a>
</div>
<?php endif?>
</div>
안녕하세요~^^
개수는 인스턴스를 만드실 때
$category_a_list->rpp = 10;
과 같이 하시면 될 듯 하나
각 카테고리별로 페이지네이션은 어려울듯 합니다.
이렇게 복잡하게 게시판 리스트를 만드는 것 보다
차라리 최신글을 활용해보시는 편이 조금 더 좋을 듯 한데
최신글을 활용해서 구성해보시겠어요?
고맙습니다.
넵 답변 감사합니다!