여기서 어디다가 각각 추가해야지 본문에 표시가 되는건가요 ?

<div id="kboard-document">
	<div id="kboard-ask-one-document">
		<div class="kboard-document-wrap" itemscope itemtype="http://schema.org/Article">
			<meta itemprop="name" content="<?php echo kboard_htmlclear(strip_tags($content->title))?>">
			
			<div class="kboard-detail">
				<div class="detail-attr detail-title">
					<div class="detail-name"><?php echo __('Title', 'kboard')?></div>
					<div class="detail-value"><?php echo $content->title?></div>
				</div>
				<?php if($content->category1):?>
				<div class="detail-attr detail-category1">
					<div class="detail-name"><?php echo $content->category1?></div>
				</div>
				<?php endif?>
				<div class="detail-attr detail-writer">
					<div class="detail-name"><?php echo __('Author', 'kboard')?></div>
					<div class="detail-value"><?php echo apply_filters('kboard_user_display', 

$content->getUserName(), $content->getUserID(), $content->getUserName(), 'kboard', $boardBuilder)?><?php echo $content-

>option->introduction?></div>
				</div>
				<div class="detail-attr detail-date">
					<div class="detail-name"><?php echo __('Date', 'kboard')?></div>
					<div class="detail-value"><?php echo date('Y-m-d H:i', strtotime($content-

>date))?></div>
				</div>
				<div class="detail-attr detail-view">
					<div class="detail-name"><?php echo __('Views', 'kboard')?></div>
					<div class="detail-v<?php echo $content->view?></div>tion?>
				</div>
				<?php
				if(!$board->initCategory2()){
					$board->category = kboard_ask_status();
				}
				?>
				<?php if($board->isAdmin()):?>
				<div class="detail-attr detail-category2">
					<div class="detail-name">
						<select id="kboard-select-category2" name="category2" 

onchange="kboard_ask_one_category_update('<?php echo $content->uid?>', this.value)">
							<option value="">상태없음</option>
							<?php while($board->hasNextCategory()):?>
							<option value="<?php echo $board->currentCategory()?>"<?php if

($content->category2 == $board->currentCategory()):?> selected<?php endif?>><?php echo $board->currentCategory()?

></option>
							<?php endwhile?>
						</select>
					</div>
				</div>
				<?php else:?>
				<div class="detail-attr detail-category2">
					<div class="detail-name">
						<span class="kboard-ask-one-status status-<?php echo array_search

($content->category2, $board->category)?>"><?php echo $content->category2?></span>
					</div>
				</div>
				<?php endif?><div class="kboard-content" itemprop="description">
				<div class="content-view">
					<?php echo $content->content?>
				</div>
			</div>
	</div>
</div>
			
			<div class="kboard-document-action">
				<div class="left">
					<button type="button" class="kboard-button-action kboard-button-like" 

onclick="kboard_document_like(this)" data-uid="<?php echo $content->uid?>" title="<?php echo __('Like', 'kboard')?>"><?

php echo __('Like', 'kboard')?> <span class="kboard-document-like-count"><?php echo intval($content->like)?

></span></button>
					<button type="button" class="kboard-button-action kboard-button-unlike" 

onclick="kboard_document_unlike(this)" data-uid="<?php echo $content->uid?>" title="<?php echo __('Unlike', 'kboard')?

>"><?php echo __('Unlike', 'kboard')?> <span class="kboard-document-unlike-count"><?php echo intval($content->unlike)?

></span></button>
				</div>
				<div class="right">
					<button type="button" class="kboard-button-action kboard-button-print" 

onclick="kboard_document_print('<?php echo $url->getDocumentPrint($content->uid)?>')" title="<?php echo __('Print', 

'kboard')?>"><?php echo __('Print', 'kboard')?></button>
				</div>
			</div>
			
			<?php if($content->isAttached()):?>
			<div class="kboard-attach">
				<div class="kboard-attach-title"><?php echo __('Attachment', 'kboard')?> <?php echo 

intval(count((array)$content->getAttachmentList()))?>개</div>
				<?php foreach($content->getAttachmentList() as $key=>$attach):?>
				<button type="button" class="kboard-button-action kboard-button-download" 

onclick="window.location.href='<?php echo $url->getDownloadURLWithAttach($content->uid, $key)?>'" title="<?php echo 

sprintf(__('Download %s', 'kboard'), $attach[1])?>"><?php echo $attach[1]?></button>
				<?php endforeach?>
			</div>
			<?php endif?>
		</div>
		
		<?php if($content->visibleComments()):?>
		<div class="kboard-comments-area"><?php echo $board->buildComment($content->uid)?></div>
		<?php endif?>
		
		<div class="kboard-document-navi">
			<div class="kboard-prev-document">
				<?php
				$bottom_content_uid = $content->getPrevUID();
				if($bottom_content_uid):
				$bottom_content = new KBContent();
				$bottom_content->initWithUID($bottom_content_uid);
				?>
				<a href="<?php echo $url->getDocumentURLWithUID($bottom_content_uid)?>">
					<span class="navi-arrow">«</span>
					<span class="navi-document-title kboard-ask-one-cut-strings"><?php echo 

$bottom_content->title?></span>
				</a>
				<?php endif?>
			</div>
			
			<div class="kboard-next-document">
				<?php
				$top_content_uid = $content->getNextUID();
				if($top_content_uid):
				$top_content = new KBContent();
				$top_content->initWithUID($top_content_uid);
				?>
				<a href="<?php echo $url->getDocumentURLWithUID($top_content_uid)?>">
					<span class="navi-document-title kboard-ask-one-cut-strings"><?php echo 

$top_content->title?></span>
					<span class="navi-arrow">»</span>
				</a>
				<?php endif?>
			</div>
		</div>
		
		<div class="kboard-control">
			<div class="left">
				<a href="<?php echo $url->set('mod', 'list')->toString()?>" class="kboard-ask-one-

button-gray"><?php echo __('List', 'kboard')?></a>
				<?php if($board->isReply() && !$content->notice):?><a href="<?php echo $url->set

('parent_uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-ask-one-button-gray"><?php echo __

('Reply', 'kboard')?></a><?php endif?>
			</div>
			<?php if($content->isEditor() || $board->permission_write=='all'):?>
			<div class="right">
				<a href="<?php echo $url->getContentEditor($content->uid)?>" class="kboard-ask-one-

button-gray"><?php echo __('Edit', 'kboard')?></a>
				<a href="<?php echo $url->getContentRemove($content->uid)?>" class="kboard-ask-one-

button-gray" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __

('Delete', 'kboard')?></a>
			</div>
			<?php endif?>
		</div>
		
		<?php if($board->contribution() && !$board->meta->always_view_list):?>
		<div class="kboard-ask-one-poweredby">
			<a href="https://www.cosmosfarm.com/products/kboard" onclick="window.open(this.href);return 

false;" title="<?php echo __('KBoard is the best community software available for WordPress', 'kboard')?>">Powered by 

KBoard</a>
		</div>
		<?php endif?>
	</div>
</div>

<?php wp_enqueue_script('ask-one-document', "{$skin_path}/document.js", array(), KBOARD_VERSION, true)?>

이렇게 인데 document.php 파일에 어디가가 각각 .. 추가해야지 본문에 표시가 나오나요 ㅠㅠㅠ 

알려주신 코드를 넣어봤는데 되지가 않아서 한번 더 물어봅니다 ㅠㅠ 

http://cwparking2019.cafe24.com/?page_id=18&mod=editor&pageid=1

 

여기 페이지에 들어가게 쓰게되는 이 필드들을 전부다 나오게 하고싶습니다.. 감사합니다

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

    추가하신 입력 필드를 게시글 본문 위에 표시하시려면

    올려주신 코드 중에서

    아래의 코드 위에 입력 필드를 표시하는 코드를 추가해보시겠어요?

    <?php echo $content->content?>

    고맙습니다.

  • 안녕하세요 어찌하다보니 추가는 하게 됐는데 왜 이렇게 뒤죽박죽으로 표시가 되는건가요 ㅠㅠ 

    글쓸때처럼 그냥 밑으로 쭉 나오게 할 수 없을까요 ? 

    http://cwparking2019.cafe24.com/?page_id=18&mod=document&pageid=1&uid=14

     

    위에 링크처럼 뒤죽박죽 ㅠㅠ 나옵니다 .. 정렬도 왼쪽으로 정렬이 됐으면 좋겠습니다 

     

  • 안녕하세요.

    올려주신 페이지 확인해보니 코드를 잘못 수정하신 듯합니다.

    현재 게시글 본문 내용이 조회 쪽에 표시되고 있습니다.

    수정하신 부분을 잘 확인해보시고 게시글 본문 내용이

    원래 표시되던 영역에 표시되도록 적용해주셔야 할 듯합니다.

     

    기존 코드를 수정하지 않으셨다면

    사용중인스킨의 document.php 파일에

    아래의 코드를 확인하실 수 있습니다.

    <div class="kboard-content" itemprop="description">
    	<div class="content-view">
    		<?php echo $content->content?>
    	</div>
    </div>

    위의 코드를 아래처럼 적용하시면

    게시글 본문 내용 위에 추가하신 입력 필드를 표시할 수 있습니다.

    <div class="kboard-content" itemprop="description">
    	<div class="content-view">
    		전화번호 : <?php echo $content->option->tel?>
    		<?php echo $content->content?>
    	</div>
    </div>

    고맙습니다.

  • 안녕하세요 말씀해주신 방법대로 코드를 추가해봤는데 본문에 나오기는 하나 공백이 너무 벌어지네요 .. ㅠㅠ 게다가 가운데로 정렬이 됩니다 

    왼쪽으로 정렬하고 공백을 안넓게 할 수는 없을까요 ? 

    <div id="kboard-document">
    <?php echo $content->option->introduction?>
    	<div id="kboard-ask-one-document">
    		<div class="kboard-document-wrap" itemscope itemtype="http://schema.org/Article">
    			<meta itemprop="name" content="<?php echo kboard_htmlclear(strip_tags($content->title))?>">
    			
    			<div class="kboard-detail">
    				<div class="detail-attr detail-title">
    					<div class="detail-name"><?php echo __('Title', 'kboard')?></div>
    					<div class="detail-value"><?php echo $content->title?></div>
    				</div>
    				<?php if($content->category1):?>
    				<div class="detail-attr detail-category1">
    					<div class="detail-name"><?php echo $content->category1?></div>
    				</div>
    				<?php endif?>
    				<div class="detail-attr detail-writer">
    					<div class="detail-name"><?php echo __('Author', 'kboard')?></div>
    					<div class="detail-value"><?php echo apply_filters('kboard_user_display', 
    
    $content->getUserName(), $content->getUserID(), $content->getUserName(), 'kboard', $boardBuilder)?><?php echo $content-
    
    >option->introduction?></div>
    				</div>
    				<div class="detail-attr detail-date">
    					<div class="detail-name"><?php echo __('Date', 'kboard')?></div>
    					<div class="detail-value"><?php echo date('Y-m-d H:i', strtotime($content-
    
    >date))?></div>
    				</div>
    				<div class="detail-attr detail-view">
    					<div class="detail-name"><?php echo __('Views', 'kboard')?></div>
    					<div class="detail-v<?php echo $content->view?>
    </div>
    				</div>
    <?php
    				if(!$board->initCategory2()){
    					$board->category = kboard_ask_status();
    				}
    				?>
    				<?php if($board->isAdmin()):?>
    				<div class="detail-attr detail-category2">
    					<div class="detail-name">
    						<select id="kboard-select-category2" name="category2" 
    
    onchange="kboard_ask_one_category_update('<?php echo $content->uid?>', this.value)">
    							<option value="">상태없음</option>
    							<?php while($board->hasNextCategory()):?>
    							<option value="<?php echo $board->currentCategory()?>"<?php if
    
    ($content->category2 == $board->currentCategory()):?> selected<?php endif?>><?php echo $board->currentCategory()?
    
    ></option>
    							<?php endwhile?>
    						</select>
    					</div>
    				</div>
    				<?php else:?>
    				<div class="detail-attr detail-category2">
    					<div class="detail-name">
    						<span class="kboard-ask-one-status status-<?php echo array_search
    
    ($content->category2, $board->category)?>"><?php echo $content->category2?></span>
    					</div>
    				</div>
    				<?php endif?><div class="kboard-content" itemprop="description">
    	<div class="content-view">
    		전화번호 : <?php echo $content->option->tel?>
    		<?php echo $content->content?>
    </div>
    </div>
    <div class="kboard-content" itemprop="description">
    	<div class="content-view">
    		차량종류 : <?php echo $content->option->vehicle_type?>
    		<?php echo $content->content?>
    	</div>
    </div>
    
    	</div>
    </div>		
    			<div class="kboard-document-action">
    				<div class="left">
    					<button type="button" class="kboard-button-action kboard-button-like" 
    
    onclick="kboard_document_like(this)" data-uid="<?php echo $content->uid?>" title="<?php echo __('Like', 'kboard')?>"><?
    
    php echo __('Like', 'kboard')?> <span class="kboard-document-like-count"><?php echo intval($content->like)?
    
    ></span></button>
    					<button type="button" class="kboard-button-action kboard-button-unlike" 
    
    onclick="kboard_document_unlike(this)" data-uid="<?php echo $content->uid?>" title="<?php echo __('Unlike', 'kboard')?
    
    >"><?php echo __('Unlike', 'kboard')?> <span class="kboard-document-unlike-count"><?php echo intval($content->unlike)?
    
    ></span></button>
    				</div>
    				<div class="right">
    					<button type="button" class="kboard-button-action kboard-button-print" 
    
    onclick="kboard_document_print('<?php echo $url->getDocumentPrint($content->uid)?>')" title="<?php echo __('Print', 
    
    'kboard')?>"><?php echo __('Print', 'kboard')?></button>
    				</div>
    			</div>
    			
    			<?php if($content->isAttached()):?>
    			<div class="kboard-attach">
    				<div class="kboard-attach-title"><?php echo __('Attachment', 'kboard')?> <?php echo 
    
    intval(count((array)$content->getAttachmentList()))?>개</div>
    				<?php foreach($content->getAttachmentList() as $key=>$attach):?>
    				<button type="button" class="kboard-button-action kboard-button-download" 
    
    onclick="window.location.href='<?php echo $url->getDownloadURLWithAttach($content->uid, $key)?>'" title="<?php echo 
    
    sprintf(__('Download %s', 'kboard'), $attach[1])?>"><?php echo $attach[1]?></button>
    				<?php endforeach?>
    			</div>
    			<?php endif?>
    		</div>
    		
    		<?php if($content->visibleComments()):?>
    		<div class="kboard-comments-area"><?php echo $board->buildComment($content->uid)?></div>
    		<?php endif?>
    		
    		<div class="kboard-document-navi">
    			<div class="kboard-prev-document">
    				<?php
    				$bottom_content_uid = $content->getPrevUID();
    				if($bottom_content_uid):
    				$bottom_content = new KBContent();
    				$bottom_content->initWithUID($bottom_content_uid);
    				?>
    				<a href="<?php echo $url->getDocumentURLWithUID($bottom_content_uid)?>">
    					<span class="navi-arrow">«</span>
    					<span class="navi-document-title kboard-ask-one-cut-strings"><?php echo 
    
    $bottom_content->title?></span>
    				</a>
    				<?php endif?>
    			</div>
    			
    			<div class="kboard-next-document">
    				<?php
    				$top_content_uid = $content->getNextUID();
    				if($top_content_uid):
    				$top_content = new KBContent();
    				$top_content->initWithUID($top_content_uid);
    				?>
    				<a href="<?php echo $url->getDocumentURLWithUID($top_content_uid)?>">
    					<span class="navi-document-title kboard-ask-one-cut-strings"><?php echo 
    
    $top_content->title?></span>
    					<span class="navi-arrow">»</span>
    				</a>
    				<?php endif?>
    			</div>
    		</div>
    		
    		<div class="kboard-control">
    			<div class="left">
    				<a href="<?php echo $url->set('mod', 'list')->toString()?>" class="kboard-ask-one-
    
    button-gray"><?php echo __('List', 'kboard')?></a>
    				<?php if($board->isReply() && !$content->notice):?><a href="<?php echo $url->set
    
    ('parent_uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-ask-one-button-gray"><?php echo __
    
    ('Reply', 'kboard')?></a><?php endif?>
    			</div>
    			<?php if($content->isEditor() || $board->permission_write=='all'):?>
    			<div class="right">
    				<a href="<?php echo $url->getContentEditor($content->uid)?>" class="kboard-ask-one-
    
    button-gray"><?php echo __('Edit', 'kboard')?></a>
    				<a href="<?php echo $url->getContentRemove($content->uid)?>" class="kboard-ask-one-
    
    button-gray" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __
    
    ('Delete', 'kboard')?></a>
    			</div>
    			<?php endif?>
    		</div>
    		
    		<?php if($board->contribution() && !$board->meta->always_view_list):?>
    		<div class="kboard-ask-one-poweredby">
    			<a href="https://www.cosmosfarm.com/products/kboard" onclick="window.open(this.href);return 
    
    false;" title="<?php echo __('KBoard is the best community software available for WordPress', 'kboard')?>">Powered by 
    
    KBoard</a>
    		</div>
    		<?php endif?>
    	</div>
    </div>
    
    <?php wp_enqueue_script('ask-one-document', "{$skin_path}/document.js", array(), KBOARD_VERSION, true)?>

     

  • 저희가 모든 코드를 일일이 다 봐드리긴 현실적으로 어렵습니다.

     

    현재 게시글이 비밀글로 되어있어 저희쪽에서 직접 확인해보지는 못했지만

    올려주신 코드 중에서 아래의 코드를 잘못 수정해주신 듯합니다.

    <div class="detail-v<?php echo $content->view?></div>tion?>

     

    또, 아래의 코드로 적용이 되어 있는데요.

    <div class="kboard-content" itemprop="description">
    	<div class="content-view">
    		전화번호 : <?php echo $content->option->tel?>
    		<?php echo $content->content?>
    	</div>
    </div>
    
    <div class="kboard-content" itemprop="description">
    	<div class="content-view">
    		차량종류 : <?php echo $content->option->vehicle_type?>
    		<?php echo $content->content?>
    	</div>
    </div>

    위의 코드를 적용하시면 본문 내용이 여러 번 표시됩니다.

    아래의 코드처럼 적용해보시겠어요?

    <div class="kboard-content" itemprop="description">
    	<div class="content-view">
    		<div class="kboard-option">전화번호 : <?php echo $content->option->tel?></div>
    		<div class="kboard-option">차량종류 : <?php echo $content->option->vehicle_type?></div>
    		<?php echo $content->content?>
    	</div>
    </div>

     

    상단에 추가하신 아래의 코드도 필요없으시다면 지워보시겠어요?

    <?php echo $content->option->introduction?>

     

    전체적으로 HTML 태그가 제대로 열고 닫혀있는지도 점검해보셔야 할 듯합니다.

    고맙습니다.

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