return $(this).css('clear') == 'both';
}).remove();
-
+ $("#tagBox :checkbox").click(function() {
+ $(".product").hide();
+ $("#tagBox :checkbox:checked").each(function() {
+ $("." + $(this).val()).show();
+ });
+ });
});
return $(this).css('clear') == 'both';
}).remove();
-
+ $("#tagBox :checkbox").click(function() {
+ $(".product").hide();
+ $("#tagBox :checkbox:checked").each(function() {
+ $("." + $(this).val()).show();
+ });
+ });
});
<div id="main-content" class="small-12 columns">
<?php if(have_posts()) : while(have_posts()): the_post();?>
+
<?php the_content();?>
<?php endwhile; else:?>
<p><?php _e('Sorry, no results found.');?></p>
-
+
<?php endif;?>
<?php get_template_part('parts/sidebar-l'); ?>
</div>
<h2> Tags </h2>
<?php
$args = array(
- "hide_empty"=> false
+ "hide_empty"=> false,
+ "hierarchical"=>true,
+ "parent"=>0
);
- $tags = get_terms("michsci_tag", $args);
- foreach($tags as $tag){
- echo '<input class="tagOptions" type="checkbox" name="' . $tag->name . '" value="' . $tag->name . '"' . '>' . " " . $tag->name . "<br>";
+ $tags = get_terms("michsci_category", $args);
+
+ foreach($tags as $tag){
+ echo '<input class="tagOptions" type="checkbox" name="' . $tag->name . '" value="' . $tag->slug . '"' . '>' . " " . $tag->name . "<br>";
} ?>
- <input class="submit blogbutton" type="submit" name="submit" value="Search" />
+
<input type="hidden" name="searchType" value="blog" /> </div>
</form>