yesamarcos

Untitled

Jul 29th, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. // WP_Query arguments
  2. $args = array (
  3. 'post_type' => 'professores',
  4. );
  5.  
  6. // The Query
  7. $filtros = new WP_Query( $args );
  8.  
  9. // The Loop
  10. if ( $filtros->have_posts() ) {
  11.  
  12. while ( $filtros->have_posts() ) { $filtros->the_post(); ?>
  13.  
  14. <?php
  15.  
  16. $tipo_docente = get_field('tipo_docente');
  17. if( in_array("Corpo Docente Voluntária", $tipo_docente) ) {
  18.  
  19. ?>
  20.  
  21. <div class="col-md-4 proff">
  22.  
  23. <div class="row">
  24.  
  25. <div class="col-md-4 thumbl">
  26. <?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
  27. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
  28. <?php the_post_thumbnail( 'parceiro-2' ); // Fullsize image for the single post ?>
  29. </a>
  30. <?php endif; ?>
  31. </div>
  32. <div class="col-md-7">
  33. <p class="neuecond font-size-20 cinza margem-0">
  34. <a class="cinza" href="<?php the_permalink() ?>"><?php the_title(); ?></a>
  35. </p>
  36. <?php $cats = get_the_category(); $cat_name = $cats[0]->name; ?>
  37. <p class="neueregular font-size-14 azul italico"><?php echo $cat_name; ?></p>
  38. <div class="prof-content neueregular font-size-14 cinza"><?php echo content(15); ?></div>
  39. </div>
  40.  
  41. </div>
  42.  
  43. </div>
  44.  
  45. <?php } ?>
  46.  
  47. <?php }
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment