[php] <?php
//子カテゴリ一覧を取得
$cat_child = get_term_children($category->cat_ID ,'category' );
//新規配列に表示させる親カテゴリと非表示の子カテゴリIDを追加
//非表示にするカテゴリはIDの前に「-」マイナスをつける
$args_cat = array($category->…
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
<input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
<?php wp_dropdown_categories('show_option_all='.__('ALL').'&hide_empty=0');?>
<input type="submit" id="submit" value="検索" />
</form>
Formタグ内の適当な箇所に以下を追加します。
<?php wp_dropdown_categories('show_option_all='.__('ALL').'&hide_empty=0');?>
graffiti on the web
この投稿へのコメント
コメントはまだありません。