비너스 웹진 최근 글 스타일문의

KBoard 비너스 웹진 게시판 목록처럼 최근 글도 똑같이 되도록 부탁드립니다. 초보자다 보니 혼자 해보다 안되어... 부탁 좀 드릴게요.

latest.php 파일에 바로 적용할 수 있도록 부탁 좀 드릴게요.

다른 글들을 검색해보니 케이보드 관리자분은 정말 성실히 답변하는 것 같습니다.^^

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

    힘들지만 열심히 답변 달아드리고 있습니다 ㅎㅎ

    아래 코드를 latest.php 파일에 추가해보시겠어요?

     

    <div id="kboard-venus-webzine-list">
        <!-- 리스트 시작 -->
        <div class="kboard-list">
        <?php while($content = $list->hasNext()): $resize_img_src = $content->getThumbnail(150, 105);?>
            <div class="kboard-webzine-item">
                <div class="kboard-webzine-thumbnail">
                    <?php if($resize_img_src):?>
                    <a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toStringWithPath($board_url)?>"><img src="<?php echo $resize_img_src?>" style="width:100%;height:100%;" alt=""></a>
                    <?php else:?>
                    <div class="kboard-no-image"><a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toStringWithPath($board_url)?>"><i class="icon-picture"></i></a></div>
                    <?php endif?>
                </div>
                <div class="kboard-webzine-wrap">
                    <div class="kboard-webzine-title cut_strings"><a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toStringWithPath($board_url)?>"><?php echo $content->title?></a> <?php echo $content->getCommentsCount()?></div>
                    <div class="kboard-webzine-content cut_strings"><a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toStringWithPath($board_url)?>">
                    <?php if($content->secret):?>
                        <?php echo __('Secret', 'kboard')?>
                    <?php else:?>
                        <?php
                        $content->content = str_replace('[', '&#91;', $content->getContent());
                        $content->content = str_replace(']', '&#93;', $content->getContent());
                        echo wp_trim_words(strip_tags($content->content), 200, '...');
                        ?>
                    <?php endif?>
                    </a></div>
                    <div class="kboard-webzine-info">
                        <?php if($content->category1):?>
                        <span class="kboard-info-value"><?php echo $content->category1?></span>
                        <span class="kboard-info-separator">ㆍ</span>
                        <?php endif?>
                        <?php if($content->category2):?>
                        <span class="kboard-info-value"><?php echo $content->category2?></span>
                        <span class="kboard-info-separator">ㆍ</span>
                        <?php endif?>
                        <span class="kboard-info-value"><?php echo $content->member_display?></span>
                        <span class="kboard-info-separator">ㆍ</span>
                        <span class="kboard-info-value"><?php echo $content->getDate()?></span>
                        <span class="kboard-info-separator">ㆍ</span>
                        <span class="kboard-info-name"><?php echo __('Votes', 'kboard')?></span>
                        <span class="kboard-info-value"><?php echo $content->vote?></span>
                        <span class="kboard-info-separator">ㆍ</span>
                        <span class="kboard-info-name"><?php echo __('Views', 'kboard')?></span>
                        <span class="kboard-info-value"><?php echo $content->view?></span>
                    </div>
                </div>
            </div>
        <?php endwhile?>
        </div>
        <!-- 리스트 끝 -->
    </div>

     

    만약 오류가 난다면 워드프레스 디버그 모드를 활성화 해서 오류메시지를 확인해보세요.

    워드프레스의 wp-config.php 파일에서

    define('WP_DEBUG', false); -> define('WP_DEBUG', true);

    이렇게 수정해주시면 디버그 모드가 활성화 됩니다.

    또는 워드프레스 디버그 모드 대신 아래 플러그인으로 오류 내용을 확인할 수 있습니다.

    https://ko.wordpress.org/plugins/error-log-monitor/

     

    그리고 확인 가능한 페이지 주소도 알려주세요~^^

    고맙습니다.

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기