베스트 게시판 관련 (읽을 수 없는 문제)

안녕하세요,

 

KBoard(케이보드) 게시판으로 베스트 게시판을 만들어보기 위해 검색하여 아래의 코드를 (코스모스팜 쓰레드 내 출처입니다) 작성하여 적용해 보았으나,

글 정렬은 잘 되지만, 해당 글을 클릭하면 "이동되었다"며 글로 진입하지는 못합니다.

 

해결방법을 부탁 드려요 ㅜㅜ

 

add_filter('kboard_list_where', 'today_best_kboard_list_where', 10, 3);
function today_best_kboard_list_where($where, $board_id, $content_list){
    
    if($board_id == '4'){ // 실제 적용될 게시판의 ID값으로 변경해주세요.
        $date = date('Ymd000000', current_time('timestamp')); // 오늘 0시 기준
        
        $where = "`date`>='{$date}' AND `parent_uid`='0' AND `notice`='' AND (`status`='' OR `status` IS NULL OR `status`='pending_approval')";
    }
    
    return $where;
}

add_filter('kboard_list_orderby', 'today_best_kboard_list_orderby', 10, 3);
function today_best_kboard_list_orderby($orderby, $board_id, $content_list){
    
    if($board_id == '4'){ // 실제 적용될 게시판의 ID값으로 변경해주세요.
        $orderby = "(`view`+`vote`) DESC, `date` DESC"; // 조회수와 추천수를 더한 값을 기준으로 정렬
    }
    
    return $orderby;
}

 

고맙습니다.

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