eduinaf-ajax-filter-posts/templates/partials/filters.php
Robbert de Kuiper e1f0aa5ed8 First commit
2017-03-30 16:28:54 +02:00

12 lines
478 B
PHP

<?php foreach ($filterlists as $filterlist) : ?>
<h3><?= $filterlist['name'] ?></h3>
<ul>
<?php foreach ($filterlist['filters'] as $filter) : ?>
<li>
<a href="<?= get_term_link( $filter, $filter->taxonomy ); ?>" class="ajax-posts__filter" data-filter="<?= $filter->taxonomy; ?>" data-term="<?= $filter->slug; ?>">
<?= $filter->name; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<?php endforeach; ?>