Guest User

index.php

a guest
Sep 25th, 2017
45
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $catquery = new WP_Query( ‘showposts=3’ );
  3. while($catquery->have_posts()) : $catquery->the_post();
  4. ?>
  5. <li class=”<?php
  6. foreach((get_the_category()) as $category) {
  7. echo $category->cat_name . ‘ ‘;
  8. }
  9. ?>”><!–job—>
  10. “>
  11. <div class=”grid-md-3 grid-xs-12-padding grid-sm-12-padding height-port”>
  12. <?php
  13. if ( has_post_thumbnail() ) {
  14. the_post_thumbnail();
  15. } ?><!–imagem—->
  16. <div class=”hover-port”><!–hover–>
  17. <h3><?php the_title(); ?></h3><!–titulo—>
  18. </div><!–final hover—>
  19. </div>
  20.  
  21. <!–final job–>
  22. <?php endwhile; ?>
RAW Paste Data