php - PHP过滤器下拉列表单击项目后不显示结果
问题描述
我有这个代码
<div class="row opening-input">
<div class="col-sm-7 col-md-7 ct-input mb-2">
<select class="custom-select input-sl h-6" name="country">
<option value="">Country</option>
<option value="291">Indonesia</option>
<option value="290">Myanmar</option>
<option value="289">Bangladesh</option>
<option value="288">Pakistan</option>
<option value="287">China</option>
<option value="287">Singapore</option>
</select>
</div>
<div class="col-sm-5 col-md-5 ct-input mb-2">
<select class="custom-select input-sl h-6 ">
<option value="">Type</option>
<option value="1">Part-time</option>
<option value="2">Full-time</option>
</select>
</div>
</div>
<div class="opening-table table-responsive container-col-ev ">
<table class="table ">
<tbody>
<?php foreach ($career as $item): ?>
<tr>
<th class="career-tb" scope="row" ><a href="<?php the_permalink($item->ID); ?>"><?php echo wp_trim_words(get_the_title($item->ID), 15, '...'); ?></a></th>
<td class="career-dc"><i class="fa fa-map-marker-alt"></i><span>Indonesia</span></td>
<td class="career-time"><i class="fas fa-clock"></i><span><?= get_field('time_work', $item->ID); ?></span></td>
<td class="text-end"><a href="<?php the_permalink($item->ID); ?>"><i class="fas fa-chevron-right cl-or "></i></a></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
当我尝试单击下拉列表中的项目时,它没有按国家或类型返回工作过滤器列表。
谁能帮我修复这段代码?太感谢了。
解决方案
推荐阅读
- c++ - 在线程之间共享一个 uint32 变量。需要 std::atomic 吗?
- javascript - 修复 React 中 fullcalendar 中的重复事件
- amazon-web-services - S3从存储桶下载多个文件
- swiftui - 没有 TabBar 的 NavigationView
- python - python - 将字符串拆分为两个字符数组
- go - Golang,导入 csv 并将其转换为地图
- math - “X 是 Y 的实现”是否意味着“X 是 Y 的类型(元素)”?
- python - Python 数据框 Groupby
- c++ - 有什么方法可以用数组表示法而不是括号来调用方法吗?
- javascript - FirebaseError:预期类型“Tc”,但它是:自定义 Ac 对象