WordPressの管理画面に検索窓を付ける小技をかちびとさんから紹介。
function.phpに以下を追加。
add_filter( 'in_admin_header', 'add_form', 11 );
function add_form () {
echo ' <form id="sitesearch" method="get" action="http://wordpress.org/search/do-search.php" class="alignright" style="margin: 11px 5px 0;">
<div>
<input type="text" class="text" name="search" id="sitesearchbox" value="" />
<input type="submit" class="button" id="go" name="go" value="検索" />
<input type="checkbox" value="1" name="forums" />フォーラム検索
</div>
</form> ';
}
デフォルトではドキュメント検索。チェックを入れるとフォーラム検索。