최신글 latest에 자꾸 옛날글이 나옵니다. 채택완료
메인에는 아래처럼 선언했는데요
화면에 자꾸 18년도 글이 나옵니다.
19년도 글도 많은데 왜 최신글이 안나오고 옛날글이 나오는걸까요?
https://sir.kr/data/editor/1908/3076552322_1565668021.2914.png" />
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0); $thumb_width = 320; $thumb_height = 200; ?>
-
비밀글 ";";
if ($list[$i]['icon_new']) echo "N새글";
if ($list[$i]['icon_hot']) echo "H인기글";
echo " "; if ($list[$i]['is_notice']) echo "".$list[$i]['subject'].""; else echo $list[$i]['subject'];
echo "
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; } // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
//echo $list[$i]['icon_reply']." "; // if ($list[$i]['icon_file']) echo " " ; //if ($list[$i]['icon_link']) echo " " ;
if ($list[$i]['comment_cnt']) echo " + ".$list[$i]['wr_comment']."";
?>
자세히 - 게시물이 없습니다.
if($thumb['src']) {
$img = $thumb['src'];
} else {
$img = G5_IMG_URL.'/no_img.png';
$thumb['alt'] = '이미지가 없습니다.';
}
$img_content = '';
?>
위에는 라테스트 페이지 전문인데
그누보드를 새로 깔아서 코드를 복붙해봐도 해결이 안되네요...ㅠ
도와주세요
답변 3개
/lib/latest.lib.php 의
$sql = " select * from {$tmp_write_table} where wr_is_comment = 0 order by wr_num limit 0, {$rows} ";
라인을 찾아
'order by wr_num' 부분을 'order by wr_id desc' 로 변경해보면 어떨까 싶습니다.
답변에 대한 댓글 2개
theme/[테마명]/latest/pic_basic2/latest.skin.php
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인