Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $terms = get_terms("type");
- $count = count($terms);
- echo '<ul id="portfolio-filter">';
- echo '<li class="active-tag btn btn-small filter">Trier : <a href="#all" data-filter="*" class="active" title="Tout">Tout</a></li>';
- if ( $count > 0 ) {
- foreach ( $terms as $term ) {
- $termname = ($term->slug);
- echo ' <li class="btn btn-small filter"><a href="#'.$termname.'" title="" data-filter=".'.$termname.'" rel="'.$termname.'">'.$term->name.'</a></li>';
- }
- }
- echo "</ul>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement