입력필드 관련 문의

 

안녕하세요. 입력필드 관련 문의드립니다.

커스터마이징 방법 ( https://blog.naver.com/PostView.nhn?blogId=chan2rrj&logNo=221216931199 ) 으로 추가했는데,

document 까지 표시되는 거까지 성공했습니다.

근데, 추가한 입력 필드가 많아서 보기에 조금 이상하더라구요,,

사용자가 작성안한 필드는 document에 표시되지 않게 할수 있나요?

----------------------------------------------------------------------------------------

추가로, 아래 링크 참고해서, 입력필드 추가 했는데, document 에서는 날짜가 안보이더라구요.. 

https://www.cosmosfarm.com/threads/document/33137

제가 추가한 코드는 아래와 같습니다.

----------------------------------------------------------------------------------------

editor.php 파일에는

<div class="kboard-attr-row">
            <label class="attr-name" for="kboard_option_date">공사예정일</label>
            <div class="attr-value">
                <div class="calendar-event-start-date-set">
                    <input type="text" class="datepicker" id="kboard_option_date" name="kboard_option_date" value="<?php echo $content->option->date?>" title="날짜">
                </div>
            </div>
        </div>

<?php wp_enqueue_script('jquery-ui-datepicker')?>
<?php wp_enqueue_script('jquery-timepicker', KBOARD_URL_PATH . '/template/js/jquery.timepicker.js', array(), true)?>
<?php wp_enqueue_style('jquery-flick-style', KBOARD_URL_PATH.'/template/css/jquery-ui.css', array(), '1.12.1')?>
<?php wp_enqueue_style('jquery-timepicker', KBOARD_URL_PATH.'/template/css/jquery.timepicker.css', array(), true)?>
<script>
    jQuery(document).ready(function(){
        jQuery('.datepicker').datepicker({
            closeText : '닫기',
            prevText : '이전달',
            nextText : '다음달',
            currentText : '오늘',
            monthNames : [ '1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월' ],
            monthNamesShort : [ '1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월' ],
            dayNames : [ '일', '월', '화', '수', '목', '금', '토' ],
            dayNamesShort : [ '일', '월', '화', '수', '목', '금', '토' ],
            dayNamesMin : [ '일', '월', '화', '수', '목', '금', '토' ],
            weekHeader : 'Wk',
            dateFormat : 'yy-mm-dd',
            firstDay : 0,
            isRTL : false,
            duration : 0,
            showAnim : 'show',
            showMonthAfterYear : true,
            yearSuffix : '년'
        });

        jQuery('.timepicker').timepicker({'timeFormat':'H:00'});
    });
</script>

이렇게 추가했고,

----------------------------------------------------------------------------------------

document.php 파일에는

<div class="kboard-document-add-option-value meta-key-data2"><span class="option-name">공사예정일</span> : <?php echo $content->option->data?></div><hr>

이렇게 했습니다..

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