Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $catquery = new WP_Query( ‘showposts=3’ );
- while($catquery->have_posts()) : $catquery->the_post();
- ?>
- <li class=”<?php
- foreach((get_the_category()) as $category) {
- echo $category->cat_name . ‘ ‘;
- }
- ?>”><!–job—>
- “>
- <div class=”grid-md-3 grid-xs-12-padding grid-sm-12-padding height-port”>
- <?php
- if ( has_post_thumbnail() ) {
- the_post_thumbnail();
- } ?><!–imagem—->
- <div class=”hover-port”><!–hover–>
- <h3><?php the_title(); ?></h3><!–titulo—>
- </div><!–final hover—>
- </div>
- <!–final job–>
- <?php endwhile; ?>
Add Comment
Please, Sign In to add comment