Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- categorias = apply_filters('taxonomy-images-get-terms', '', array( 'taxonomy' => 'category') );
- foreach($categorias as $key => $categoria):
- if($key < 6):
- ?>
- <div class="box">
- <a href="<?php echo get_category_link($categoria->term_id);?>">
- <figure>
- <?php echo wp_get_attachment_image($categoria->image_id,''); ?>
- </figure>
- <img src="<?php bloginfo('template_directory');?>/images/icones/plus.png" class="plus-icone" alt="">
- <figcaption class="titulo-foto-categoria"><?php echo $categoria->name;?></figcaption>
- </a>
- </div>
- <?php
- endif;
- endforeach;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement