각 카테고리의 게시물 표시

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>

 

 

 

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기