메인화면 최신글 보기 관련 문의 드립니다.

현재 메인화면에 최신글 보기를 해서 게시판 3개를 최신글로 나오게 하고 있습니다.

최신글 제목 앞에 카테고리처럼  예)  [자유게시판] 안녕하세요~ , [뉴스] 안녕하세요, [문의사항] 안녕하세요  이렇게 넣고 싶습니다.

어느 부분을 수정 하면 될까요?

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
  • 안녕하세요~^^

    KBoard 최신글에서 제목 앞에 카테고리를 표시하시려면

    FTP로 접속해서 /wp-content/plugins/kboard/skin/사용중인스킨/latest.php 파일에

    아래의 코드를 찾아서

    <?php echo $content->title?>

    찾은 코드 위에 아래의 코드를 추가해보시겠어요?

    <?php if($content->category1):?>[<?php echo $content->category1?>]<?php endif?>

    고맙습니다.

  • avatar 스킨 사용 중입니다.

  • 입력 필드 설정을 지원하는 스킨을 사용 중이신지요?

    어떤 스킨을 사용 중이신지 알려주시겠어요?

    고맙습니다.

  • kboard 최신 버전이고, 초기화 후 기본값이 나왔는데, 카테고리 설정을 다 하고 했는데도

    기본값을 선택 하고 했는데도, 글쓰기에서는 여전히 카테고리선택이라고 뜨네요. 다른 수정 방법이 필요한건가요?

     

  • 카테고리 기본값 필드가 정상적으로 표시되지 않는다면

    워드프레스 관리자 -> KBoard -> 게시판 목록 -> 게시판 선택 -> 기본설정 탭에서

    카테고리 사용 설정이 활성화 되어 있는지 확인해보세요.

    그리고 카테고리 선택이 기본 카테고리 사용으로 설정되어 있는지 확인해보세요.

    카테고리1, 카테고리2 입력 필드에 정상적으로 카테고리가 입력되어 있는지 확인해보세요.

     

    또한 입력필드 설정 탭에서 설정을 초기화한 후에도 확인해보세요.

    그래도 해결되지 않는다면

    KBoard 플러그인을 최신 버전으로 업데이트 부탁드립니다.

    KBoard(케이보드) 플러그인 업데이트 방법

    고맙습니다.

  • 기본 값 설정이란 부분이 없습니다. 

    제목이나 작성자 부분에는 기본값 넣는 부분이 있는데 

    카테고리에는 기본값 넣는 부분이 나오지 않습니다. 확인 부탁드립니다

    나오는 내용은

    필드 레이블

    메타키

    표시할 권한

    설명 

     

    이렇게만 나옵니다.

  • KBoard 플러그인에서 카테고리1 부분의 기본값 설정은

    워드프레스 관리자 -> KBoard -> 게시판 목록 -> 게시판 선택 -> 입력필드 설정 탭에서 하실 수 있습니다.

    카테고리1 필드 설정 중 기본값을 설정해보세요.

    고맙습니다.

  • 위 코드를 넣어 하면 카테고리가 나오는데 혹시 그러면 게시판에서 글을 작성할때 기본적으로 

    카테고리선택 이라고 나오는데 해당 부분을 기본 값을   자유게시판 이렇게 자동으로 뜨게 할 수 있는

    방법이 있을까요?

  • 안녕하세요.

    KBoard 플러그인 카테고리1, 카테고리2 입력 필드의 기본값 설정에 버그가 있었습니다.

    FTP로 접속해서 /wp-content/plugins/kboard/skin/사용중인스킨/editor-fields.php 파일의 코드를

    아래의 코드로 교체해보시겠어요?

    <?php if($field['field_type'] == 'ip'):?>
    	<input type="hidden" name="kboard_option_ip" value="<?php echo kboard_user_ip()?>">
    <?php elseif($field['field_type'] == 'content'):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> <?php echo esc_attr($required)?>">
    		<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
    		<div class="kboard-content">
    			<?php
    			echo kboard_content_editor(array(
    				'board' => $board,
    				'content' => $content,
    				'required' => $required,
    				'placeholder' => $placeholder,
    				'editor_height' => '400',
    			));
    			?>
    		</div>
    	</div>
    <?php elseif($field['field_type'] == 'author'):?>
    	<?php if($field['permission'] == 'always_visible' || (!$field['permission'] && $board->viewUsernameField())):?>
    		<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> required">
    			<label class="attr-name" for="kboard-input-member-display"><span class="field-name"><?php echo esc_html($field_name)?></span> <span class="attr-required-text">*</span></label>
    			<div class="attr-value"><input type="text" id="kboard-input-member-display" name="member_display" class="required" value="<?php echo $content->member_display?esc_attr($content->member_display):esc_attr($default_value)?>"<?php if($placeholder):?> placeholder="<?php echo esc_attr($placeholder)?>"<?php endif?>></div>
    		</div>
    	<?php elseif($field['permission'] == 'always_hide'):?>
    		<input type="hidden" id="kboard-input-member-display" name="member_display" value="<?php echo $content->member_display?esc_attr($content->member_display):esc_attr($default_value)?>">
    	<?php endif?>
    	<?php if($board->viewUsernameField()):?>
    		<div class="kboard-attr-row kboard-attr-password">
    			<label class="attr-name" for="kboard-input-password"><?php echo __('Password', 'kboard')?> <span class="attr-required-text">*</span></label>
    			<div class="attr-value"><input type="password" id="kboard-input-password" name="password" value="<?php echo esc_attr($content->password)?>" placeholder="<?php echo __('Password', 'kboard')?>..."></div>
    		</div>
    	<?php endif?>
    <?php elseif($field['field_type'] == 'captcha'):?>
    	<?php if($board->useCAPTCHA() && !$content->uid):?>
    		<?php if(kboard_use_recaptcha()):?>
    		<div class="kboard-attr-row <?php echo esc_attr($field['class'])?>">
    			<label class="attr-name"></label>
    			<div class="attr-value"><div class="g-recaptcha" data-sitekey="<?php echo kboard_recaptcha_site_key()?>"></div>
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?></div>
    		</div>
    		<?php else:?>
    		<div class="kboard-attr-row <?php echo esc_attr($field['class'])?>">
    			<label class="attr-name" for="kboard-input-captcha"><img src="<?php echo kboard_captcha()?>" alt=""></label>
    			<div class="attr-value"><input type="text" id="kboard-input-captcha" name="captcha" value="" placeholder="<?php echo __('CAPTCHA', 'kboard')?>...">
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?></div>
    		</div>
    		<?php endif?>
    	<?php endif?>
    <?php elseif($field['field_type'] == 'attach'):?>
    	<?php if($board->meta->max_attached_count > 0):?>
    		<!-- 첨부파일 시작 -->
    		<?php for($attached_index=1; $attached_index<=$board->meta->max_attached_count; $attached_index++):?>
    		<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> attach-<?php echo $attached_index?>">
    			<label class="attr-name" for="kboard-input-file<?php echo $attached_index?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php echo $attached_index?></label>
    			<div class="attr-value">
    				<?php if(isset($content->attach->{"file{$attached_index}"})):?><?php echo $content->attach->{"file{$attached_index}"}[1]?> - <a href="<?php echo $url->getDeleteURLWithAttach($content->uid, "file{$attached_index}")?>" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete file', 'kboard')?></a><?php endif?>
    				<input type="file" id="kboard-input-file<?php echo $attached_index?>" name="kboard_attach_file<?php echo $attached_index?>">
    				<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    			</div>
    		</div>
    		<?php endfor?>
    		<!-- 첨부파일 끝 -->
    	<?php endif?>
    <?php elseif($field['field_type'] == 'category1'):?>
    	<?php if(!$board->isTreeCategoryActive()):?>
    		<?php if($board->initCategory1()):?>
    			<?php $category1 = $content->category1 ? $content->category1 : $default_value?>
    			<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> <?php echo esc_attr($required)?>">
    				<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
    				<div class="attr-value">
    					<select id="<?php echo esc_attr($meta_key)?>" name="category1" class="<?php echo esc_attr($required)?>">
    						<option value=""><?php echo __('Category', 'kboard')?> <?php echo __('Select', 'kboard')?></option>
    						<?php while($board->hasNextCategory()):?>
    						<option value="<?php echo $board->currentCategory()?>"<?php if($category1 == $board->currentCategory()):?> selected<?php endif?>><?php echo $board->currentCategory()?></option>
    						<?php endwhile?>
    					</select>
    					<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    				</div>
    			</div>
    		<?php endif?>
    	<?php endif?>
    <?php elseif($field['field_type'] == 'category2'):?>
    	<?php if(!$board->isTreeCategoryActive()):?>
    		<?php if($board->initCategory2()):?>
    			<?php $category2 = $content->category2 ? $content->category2 : $default_value?>
    			<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> <?php echo esc_attr($required)?>">
    				<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
    				<div class="attr-value">
    					<select id="<?php echo esc_attr($meta_key)?>" name="category2" class="<?php echo esc_attr($required)?>">
    						<option value=""><?php echo __('Category', 'kboard')?> <?php echo __('Select', 'kboard')?></option>
    						<?php while($board->hasNextCategory()):?>
    						<option value="<?php echo $board->currentCategory()?>"<?php if($category2 == $board->currentCategory()):?> selected<?php endif?>><?php echo $board->currentCategory()?></option>
    						<?php endwhile?>
    					</select>
    					<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    				</div>
    			</div>
    		<?php endif?>
    	<?php endif?>
    <?php elseif($field['field_type'] == 'tree_category'):?>
    	<?php if($board->isTreeCategoryActive()):?>
    		<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> <?php echo esc_attr($required)?>">
    			<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span></label>
    			<div class="attr-value">
    				<?php for($i=1; $i<=$content->getTreeCategoryDepth(); $i++):?>
    				<input type="hidden" id="tree-category-check-<?php echo $i?>" value="<?php echo $content->option->{'tree_category_'.$i}?>">
    				<input type="hidden" name="kboard_option_tree_category_<?php echo $i?>" value="">
    				<?php endfor?>
    				<div class="kboard-tree-category-wrap"></div>
    				<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    			</div>
    		</div>
    	<?php endif?>
    <?php elseif($field['field_type'] == 'title'):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> required">
    		<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span> <span class="attr-required-text">*</span></label>
    		<div class="attr-value">
    			<input type="text" id="<?php echo esc_attr($meta_key)?>" name="title" class="required" value="<?php echo $content->title?esc_attr($content->title):esc_attr($default_value)?>"<?php if($placeholder):?> placeholder="<?php echo esc_attr($placeholder)?>"<?php endif?>>
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    <?php elseif($field['field_type'] == 'option'):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?>">
    		<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span></label>
    		<div class="attr-value">
    			<?php if($fields->isUseFields($field['secret_permission'], $field['secret'])):?>
    				<label class="attr-value-option"><input type="checkbox" name="secret" value="true" onchange="kboard_toggle_password_field(this)"<?php if($content->secret):?> checked<?php endif?>> <?php echo __('Secret', 'kboard')?></label>
    			<?php endif?>
    			<?php if($fields->isUseFields($field['notice_permission'], $field['notice'])):?>
    				<label class="attr-value-option"><input type="checkbox" name="notice" value="true"<?php if($content->notice):?> checked<?php endif?>> <?php echo __('Notice', 'kboard')?></label>
    			<?php endif?>
    			<?php do_action('kboard_skin_editor_option', $content, $board, $boardBuilder)?>
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    	<?php if(!$board->viewUsernameField()):?>
    	<div style="overflow:hidden;width:0;height:0;">
    		<input style="width:0;height:0;background:transparent;color:transparent;border:none;" type="text" name="fake-autofill-fields">
    		<input style="width:0;height:0;background:transparent;color:transparent;border:none;" type="password" name="fake-autofill-fields">
    	</div>
    	<!-- 비밀글 비밀번호 필드 시작 -->
    	<div class="kboard-attr-row kboard-attr-password secret-password-row"<?php if(!$content->secret):?> style="display:none"<?php endif?>>
    		<label class="attr-name" for="kboard-input-password"><?php echo __('Password', 'kboard')?> <span class="attr-required-text">*</span></label>
    		<div class="attr-value"><input type="password" id="kboard-input-password" name="password" value="<?php echo esc_attr($content->password)?>" placeholder="<?php echo __('Password', 'kboard')?>..."></div>
    	</div>
    	<!-- 비밀글 비밀번호 필드 끝 -->
    	<?php endif?>
    <?php elseif($field['field_type'] == 'media'):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?>">
    		<label class="attr-name" onclick="kboard_editor_open_media();return false;"><span class="field-name"><?php echo esc_html($field_name)?></span></label>
    		<div class="attr-value">
    			<a href="#" onclick="kboard_editor_open_media();return false;"><?php echo __('KBoard Add Media', 'kboard')?></a>
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    <?php elseif($field['field_type'] == 'thumbnail'):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?>">
    		<label class="attr-name" for="kboard-input-thumbnail"><span class="field-name"><?php echo esc_html($field_name)?></span></label>
    		<div class="attr-value">
    			<?php if($content->thumbnail_file):?><?php echo $content->thumbnail_name?> - <a href="<?php echo $url->getDeleteURLWithAttach($content->uid);?>" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete file', 'kboard')?></a><?php endif?>
    			<input type="file" id="kboard-input-thumbnail" name="thumbnail" accept="image/*">
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    <?php elseif($field['field_type'] == 'search'):?>
    	<?php if(isset($field['hidden']) && $field['hidden'] == '1'):?>
    		<input type="hidden" name="wordpress_search" value="<?php echo esc_attr($default_value)?>">
    	<?php else:?>
    		<div class="kboard-attr-row <?php echo esc_attr($field['class'])?>">
    			<label class="attr-name" for="kboard-select-wordpress-search"><span class="field-name"><?php echo esc_html($field_name)?></span></label>
    			<div class="attr-value">
    				<select id="kboard-select-wordpress-search" name="wordpress_search">
    					<option value="1"<?php if($wordpress_search == '1'):?> selected<?php endif?>><?php echo __('Public', 'kboard')?></option>
    					<option value="2"<?php if($wordpress_search == '2'):?> selected<?php endif?>><?php echo __('Only title (secret document)', 'kboard')?></option>
    					<option value="3"<?php if($wordpress_search == '3'):?> selected<?php endif?>><?php echo __('Exclusion', 'kboard')?></option>
    				</select>
    				<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    			</div>
    		</div>
    	<?php endif?>
    <?php elseif($field['field_type'] == 'text'):?>
    	<?php if(isset($field['hidden']) && $field['hidden']):?>
    		<input type="hidden" id="<?php echo esc_attr($meta_key)?>" class="<?php echo esc_attr($required)?>" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>" value="<?php echo $content->option->{$meta_key}?esc_attr($content->option->{$meta_key}):esc_attr($default_value)?>">
    	<?php else:?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
    		<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
    		<div class="attr-value">
    			<input type="text" id="<?php echo esc_attr($meta_key)?>" class="<?php echo esc_attr($required)?>" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>" value="<?php echo $content->option->{$meta_key}?esc_attr($content->option->{$meta_key}):esc_attr($default_value)?>"<?php if($placeholder):?> placeholder="<?php echo esc_attr($placeholder)?>"<?php endif?>>
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    	<?php endif?>
    <?php elseif($field['field_type'] == 'select' && $row):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
    		<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
    		<div class="attr-value">
    			<select id="<?php echo esc_attr($meta_key)?>" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>"class="<?php echo esc_attr($required)?>">
    				<option value=""><?php echo __('Select', 'kboard')?></option>
    				<?php foreach($field['row'] as $option_key=>$option_value):?>
    					<?php if(isset($option_value['label']) && $option_value['label']):?>
    						<?php if($content->option->{$meta_key}):?>
    							<option value="<?php echo esc_attr($option_value['label'])?>"<?php if($fields->isSavedOption($content->option->{$meta_key}, $option_value['label'])):?> selected<?php endif?>><?php echo esc_html($option_value['label'])?></option>
    						<?php else:?>
    							<option value="<?php echo esc_attr($option_value['label'])?>"<?php if($default_value && $default_value==$option_key):?> selected<?php endif?>><?php echo esc_html($option_value['label'])?></option>
    						<?php endif?>
    					<?php endif?>
    				<?php endforeach?>
    			</select>
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    <?php elseif($field['field_type'] == 'radio' && $row):?>
    	<?php if(isset($field['row']) && $field['row']):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
    		<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
    		<div class="attr-value">
    			<input type="hidden" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>" value="">
    			<?php foreach($field['row'] as $option_key=>$option_value):?>
    				<?php if(isset($option_value['label']) && $option_value['label']):?>
    					<?php if($content->option->{$meta_key}):?>
    						<label class="attr-value-label"><input type="radio" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>"class="<?php echo esc_attr($required)?>"<?php if($fields->isSavedOption($content->option->{$meta_key}, $option_value['label'])):?> checked<?php endif?> value="<?php echo esc_attr($option_value['label'])?>"> <?php echo esc_html($option_value['label'])?></label>
    					<?php else:?>
    						<label class="attr-value-label"><input type="radio" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>"class="<?php echo esc_attr($required)?>"<?php if($default_value && $default_value==$option_key):?> checked<?php endif?> value="<?php echo esc_attr($option_value['label'])?>"> <?php echo esc_html($option_value['label'])?></label>
    					<?php endif?>
    				<?php endif?>
    			<?php endforeach?>
    			<label class="attr-reset-button" style="cursor:pointer" onclick="kboard_radio_reset(this)"><?php echo __('Reset', 'kboard')?></label>
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    	<?php endif?>
    <?php elseif($field['field_type'] == 'checkbox' && $row):?>
    	<?php if(isset($field['row']) && $field['row']):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
    		<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
    		<div class="attr-value">
    			<input type="hidden" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>" value="">
    			<?php foreach($field['row'] as $option_key=>$option_value):?>
    				<?php if(isset($option_value['label']) && $option_value['label']):?>
    					<?php if($content->option->{$meta_key}):?>
    						<label class="attr-value-label"><input type="checkbox" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>[]"class="<?php echo esc_attr($required)?>"<?php if($fields->isSavedOption($content->option->{$meta_key}, $option_value['label'])):?> checked<?php endif?> value="<?php echo esc_attr($option_value['label'])?>"> <?php echo esc_html($option_value['label'])?></label>
    					<?php else:?>
    						<label class="attr-value-label"><input type="checkbox" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>[]"class="<?php echo esc_attr($required)?>"<?php if($default_value && in_array($option_value['label'], $default_value)):?> checked<?php endif?> value="<?php echo esc_attr($option_value['label'])?>"> <?php echo esc_html($option_value['label'])?></label>
    					<?php endif?>
    				<?php endif?>
    			<?php endforeach?>
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    	<?php endif?>
    <?php elseif($field['field_type'] == 'textarea'):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
    		<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
    		<div class="attr-value">
    			<textarea id="<?php echo esc_attr($meta_key)?>" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>"class="editor-textarea <?php echo esc_attr($required)?>"<?php if($placeholder):?> placeholder="<?php echo esc_attr($placeholder)?>"<?php endif?>><?php echo $content->option->{$meta_key}?esc_textarea($content->option->{$meta_key}):esc_textarea($default_value)?></textarea>
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    <?php elseif($field['field_type'] == 'file'):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?>">
    		<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span></label>
    		<div class="attr-value">
    			<?php if(isset($content->attach->{$meta_key})):?><?php echo $content->attach->{$meta_key}[1]?> - <a href="<?php echo $url->getDeleteURLWithAttach($content->uid, $meta_key)?>" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete file', 'kboard')?></a><?php endif?>
    				<input type="file" id="kboard-input-<?php echo esc_attr($meta_key)?>" name="kboard_attach_<?php echo esc_attr($meta_key)?>">
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    <?php elseif($field['field_type'] == 'wp_editor'):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
    		<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
    		<div class="attr-value">
    			<?php wp_editor($content->option->{$meta_key}?$content->option->{$meta_key}:$default_value, $fields->getOptionFieldName($meta_key), array('media_buttons'=>$board->isAdmin(), 'editor_height'=>400, 'editor_class'=>$required))?>
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    <?php elseif($field['field_type'] == 'html'):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?>">
    		<?php echo $html?>
    	</div>
    <?php elseif($field['field_type'] == 'shortcode'):?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?>">
    		<?php echo do_shortcode($shortcode)?>
    	</div>
    <?php elseif($field['field_type'] == 'date'):?>
    	<?php
    	wp_enqueue_style('kboard-jquery-flick-style');
    	wp_enqueue_script('jquery-ui-datepicker');
    	wp_enqueue_script('kboard-field-date');
    	?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
    		<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
    		<div class="attr-value">
    			<input type="text" id="<?php echo esc_attr($meta_key)?>" class="<?php echo esc_attr($required)?> datepicker" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>" value="<?php echo $content->option->{$meta_key}?esc_attr($content->option->{$meta_key}):esc_attr($default_value)?>"<?php if($placeholder):?> placeholder="<?php echo esc_attr($placeholder)?>"<?php endif?>>
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    <?php elseif($field['field_type'] == 'time'):?>
    	<?php
    	wp_enqueue_style('jquery-timepicker');
    	wp_enqueue_script('jquery-timepicker');
    	wp_enqueue_script('kboard-field-time');
    	?>
    	<div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
    		<label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
    		<div class="attr-value">
    			<input type="text" id="<?php echo esc_attr($meta_key)?>" class="<?php echo esc_attr($required)?> timepicker" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>" value="<?php echo $content->option->{$meta_key}?esc_attr($content->option->{$meta_key}):esc_attr($default_value)?>"<?php if($placeholder):?> placeholder="<?php echo esc_attr($placeholder)?>"<?php endif?>>
    			<?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
    		</div>
    	</div>
    <?php endif?>

     

    추후 코드 변경 사항은 다음 업데이트에 반영하도록 하겠습니다.

    고맙습니다.

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요