Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-xs-12 text-center">
- <ul id="filters" class="filter-list list-unstyled text-center">
- <li class="active"><a class="selected" href="#">ะัะต</a></li>
- <?php $arg=array(
- 'taxonomy'=>'catalog_cat',
- 'hide_empty'=>false,
- );
- $terms=get_terms($arg);
- foreach ($terms as $term) : ?>
- <li><a href="#" data-filter=".<?php echo $term->slug; ?>"><?php echo $term->name; ?></a></li>
- <?php endforeach;
- ?>
- </ul>
- </div>
- <div class="col-md-8" >
- <div id="holder">
- <?php
- if ( have_posts() ) : while ( have_posts() ) : the_post();
- $term_slug=get_the_terms($post->ID, 'catalog_cat');
- $term_string ='';
- foreach($term_slug as $term) :
- $term_string.=$term->slug;
- endforeach;
- ?>
- <div class=" col-md-6 col <?php echo $term_string; ?>" >
- <div class="latest_share_blog_box mb_40">
- <div class="latest_share_img_box">
- <?php the_post_thumbnail('spec_thumb'); ?>
- <span class="blog_date"><?php echo get_post_meta($post->ID, 'coint_text', true) ?></span>
- </div>
- <a href="<?php the_permalink(); ?>"><h1><?php the_title(); ?></h1></a>
- <p><?php the_excerpt(); ?></p>
- </div>
- </div>
- <?php endwhile; ?>
- </div>
- </div>
- <?php else: ?>
- <!-- no posts found -->
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement