您好,我的小部件出现问题。小部件中有一个搜索引擎。我想在小部件中添加下拉输入选项,但出现错误(500)。我的代码是这样的:
<div class="dropdown form-control search_location_mobile_wrapp search_location_list_wrapp">
<div data-toggle="dropdown" id="search_location_list" class="filter_menu_trigger"
data-value="<?php
if(isset($_GET['search_location'])){
echo esc_attr($_GET['search_location']);
}else{
echo 'all';
}
?>">
<?php
if( isset($_GET['search_location'])){
echo esc_html__($_GET['search_location'],'wpestate');
}else{
esc_html_e('Where do you want to go ?','wpestate');
}?>
<span class="caret caret_filter"></span>
</div>
<input type="hidden" name="search_location" id="search_location_list"
value="<?php
if(isset($_GET['search_location'])){
echo esc_attr($_GET['search_location']);
}?>">
<ul class="dropdown-menu filter_menu" id="guest_no_main_list" role="menu" aria-labelledby="search_location">
<?php print wpestate_get_city_select_list($args);?>
</ul>
</div>
有什么问题?