feature: Rework dropdowns

This commit is contained in:
Keith Solomon
2025-02-12 10:24:24 -06:00
parent fd33165202
commit 8bdcdbada2
4 changed files with 84 additions and 37 deletions

View File

@@ -9,8 +9,9 @@ $resource_subjects = get_terms(['taxonomy' => 'resource_subject', 'hide_empty' =
<form id="resource-filter">
<!-- Search Field-->
<div class="search-text">
<input class="full-width" type="text" id="search" name="search" placeholder="Search resources..." value="<?php echo isset($_GET['search']) ? esc_attr($_GET['search']) : ''; ?>">
<input class="full-width" type="text" id="search" name="search" placeholder="Search resources..." value="<?php echo isset($search) ? esc_attr($search) : ''; ?>">
<button type="reset" id="clear-search">&times;</button>
<button type="submit">Filter</button>
</div>

View File

@@ -1,8 +1,6 @@
<?php
if (!defined('ABSPATH')) { exit; } // Prevent direct access
error_log('Filter Summary: ' . print_r($_POST, true));
// Get count from AJAX or direct POST
$count = isset($resTotal) ? esc_html($resTotal) : 0;