<form action=”<?php echo home_url(); ?>” method=”get”>
<ul>
<li><select name=”fruits”>
<option value=””>試合年</option>
<?php
$terms = get_terms(‘game-year’);
foreach ($terms as $term): ?>
<option value=”<?php echo esc_html($term->slug); ?>”><?php echo esc_html($term->name); ?></option>
<?php endforeach; ?>
</select></li>
<li> キーワード:<input type=”text” value=”” name=”s” /></li>
</ul>
<input type=”submit” value=”この内容で検索!” />
</form>