민트테마 최신글 출력 갯수 수정하는 방법이 뭔가요.
본문
질문 수정을 할랬는데 실수로 지웠네요.
<?php
for ($i=0; $i<count($list); $i++) {
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$thumb_width.'" height="'.$thumb_height.'">';
} else {
$noimg = $latest_skin_path.'/img/no_img.gif';
$img_content = '<span>'.get_noimage_thumbnail($bo_table, $noimg, $thumb_width, $thumb_height, $class='no_img').'</span>';
}
?>
기본적으로 count($list)의 숫자가 고정되이 었는 것 같습니다.
일반 게시글의 경우는 5개, 갤러리의 경우는 4개.
count($list)에 그냥 10을 대입했더니 기존의5,4개만 정상적으로 작동하고,
나머지는 메인페이지로 연결이 되더군요.
<li>
<a href="<?php echo $list[$i]['href']; ?>" class="lt_image"><?php echo $img_content; ?></a>
<?php
echo "<a href=\"".$list[$i]['href']."\" class=\"lt_tit\"><span>";
if ($list[$i]['is_notice'])
echo "<strong>".$list[$i]['subject']."</strong>";
else
echo $list[$i]['subject'];
echo "</span></a>";
?>
</li>
최신글을 출력하는 코드에도 +4를 넣어보기도 하고 이렇게 저렇게 해봤지만 아무 소용이 없었습니다.
혹시 민트테마 최신글 공개 개수 수정하는 방법 아시는 분 계신지요.
!-->