私はずっとこの機能に取り組んできました、そして私は私が賞金を提供するのに十分な敬意を持っていたらいいのにと思います。助けていただければ幸いです。
// Advanced Search Check
function ct_search_form_check($name, $taxonomy_name = null) {
global $search_values;
if (!$taxonomy_name) {
$taxonomy_name = $name;
} ?>
<?php foreach( get_terms($taxonomy_name, 'hide_empty=0') as $t) : ?>
<?php if ($search_values[$name] == $t->slug) { $selected = 'checked="checked"'; } else { $selected = ''; } ?>
<div><input id="ct_<?php echo $name; ?>" name="ct_<?php echo $name; ?>" type="checkbox" style="margin-right:5px; margin-left:5px" <?php echo $selected; ?>value="<?php echo $t->slug; ?>"><?php echo $t->name; ?><span style="margin-left:10px"></span></input></div>
//recently added this part to replace duplicate taxonomy_name in url
<?php $data = array();
while (list($name, $t->slug) = each($arr)) {
$data[] = "$name";
}
echo implode($data); ?>
<?php endforeach; ?>
<?php
}
出力をから変更するにはどうすればよいですか
?ct_zipcode =&ct_event_type = alumni&ct_ = anneverisy&ct_setting = ballroom&ct_ = bar&Venue-search = true
に
?ct_zipcode =&ct_event_type = alumni%2canneverisy&ct_setting = ballroom%2cbar&Venue-search = true