Checkbox Filter with jQuery

This example works great with Isotope, Masonry, and jQuery filters.

HTML Checkbox filter list

Term list being generated by get terms as checkboxes

<div id="filter">
	<div class="filter_item">
		<h3>Building Type</h3>
		<?php echo get_terms_checkboxes('building_type', $args = array('hide_empty'=>true)); ?>
	</div>
</div>

HTML

<div class="show_home" data-category="<?php foreach ($building as $term) { echo $term->slug; } ?>

Source.

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.