wpexplorer

Untitled

Apr 8th, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php $terms = get_terms( 'portfolio_category') ); ?>
  2. <?php if( $terms ) { ?>
  3. <ul class="portfolio-archives-filter clr">
  4. <?php foreach ($terms as $term ) : ?>
  5. <li><a href="#" data-filter=".<?php echo $term->slug; ?>"><?php echo $term->name; ?><span class="term-count">- <?php echo $term->count; ?></span></a></li>
  6. <?php endforeach; ?>
  7. </ul><!-- /portfolio-cats -->
  8. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment