Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="container" class="clearfix isotope">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <?php $categories = get_the_category();
- if($categories){ foreach($categories as $category) {
- if($category->term_id == 3 ){ ?>
- This is the brand category - display this
- <?php } ?>
- <?php } } ?>
- <?php endwhile; else: ?>
- <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
- <?php endif; ?>
- </div> <!-- /container -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement