以下の例では、$tag_descriptionで投稿タグの説明を取得し、表示しています。
[php]
<?php
$tag_name = single_tag_title( '', false );
echo "<h2>".$tag_name."</h2>";
echo "<h3>タグの説明 : &qu…
<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');?>
この投稿へのコメント
コメントはまだありません。