PHP过滤器下拉列表点击项目后不显示结果

时间:2021-01-25 03:27:08

标签: php html

我有这个代码

<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>

当我尝试单击下拉列表中的项目时,它没有返回按国家或类型划分的职位过滤器列表。

problem-in-picture

谁能帮我修复这个代码?非常感谢。

0 个答案:

没有答案