정확하게 내 질문을 정의하는 방법을 모르겠다. 내 맞춤 Wordpress 테마로 작업하고있다. Wordpress admin의 일반 설정에서 사용자 입력 필드를 추가했다. 에 .php 일반적인 목록에 새로운 배열을 첨가하고 난 옵션-general.php 새로운 tablerow 생성 :wordpress options-general.php에 textarea 추가하기
<tr valign="top">
<th scope="row"><label for="siteupdates"><?php _e('Site Updates') ?></label></th>
<td><input name="siteupdates" type="text" id="content"
"value="<?php form_option('siteupdates'); ?>" class="regular-text" ></>
<span class="description"><?php _e('Site news,updates,etc.') ?></span></td>
</tr>
을 난이 도시를 원 여기서 또한 header.php에서 DIV 추가 :
을<div id="siteInfo">
<?php form_option('siteupdates'); ?>
</div><!--siteInfo end-->
그런 다음 phpmyadmin ('siteupdates')의 wordpress 데이터베이스에 새 쿼리를 추가했습니다. ing은 위대한 작품입니다. PHP에서 매우 새로운 것이므로 많은 튜토리얼을 보았습니다. 그런 식으로 나를 위해 가장 쉬운 방법을 찾았습니다. 지금 내가 텍스트 영역 필드에이 입력을 변경하려면,하지만 난에 HTML을 변경하는 경우 :
<tr valign="top">
<th scope="row"><label for="siteupdates"><?php _e('Site updates') ?></label></th>
<td><textarea name="siteupdates" type="text" id="content"
cols="50" rows="6" value="<?php form_option('siteupdates'); ?>" class="regular-text">
</textarea>
<span class="description"><?php _e('Site news,updates,etc.') ?></span></td>
</tr>
그것의 잘 보이는
, 내가 대신 입력 텍스트 필드를 볼 수 있지만, 내가 그 안에 데이터를 저장 기운 다. 내가 어디가 잘못 됐니?
WP 설치를 업그레이드 할 때 /가 깨질 때 'wp-admin' 폴더에서 파일을 편집하는 것은 이상적이지 않습니다. – Indranil
메신저 알고 있지만,이 일을하는 다른 방법을 모른다. functions.php를 편집하는 것은 나에게 복잡하다. 만약 여러분 중 일부가 적절한 방법으로 어떻게하는지 설명 할 수 있다면. – misticx
[자신의 옵션 페이지 추가] (http://codex.wordpress.org/Administration_Menus)를보아야합니다. – Indranil