Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // WP_Query arguments
- $args = array (
- 'post_type' => 'professores',
- );
- // The Query
- $filtros = new WP_Query( $args );
- // The Loop
- if ( $filtros->have_posts() ) {
- while ( $filtros->have_posts() ) { $filtros->the_post(); ?>
- <?php
- $tipo_docente = get_field('tipo_docente');
- if( in_array("Corpo Docente Voluntária", $tipo_docente) ) {
- ?>
- <div class="col-md-4 proff">
- <div class="row">
- <div class="col-md-4 thumbl">
- <?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
- <?php the_post_thumbnail( 'parceiro-2' ); // Fullsize image for the single post ?>
- </a>
- <?php endif; ?>
- </div>
- <div class="col-md-7">
- <p class="neuecond font-size-20 cinza margem-0">
- <a class="cinza" href="<?php the_permalink() ?>"><?php the_title(); ?></a>
- </p>
- <?php $cats = get_the_category(); $cat_name = $cats[0]->name; ?>
- <p class="neueregular font-size-14 azul italico"><?php echo $cat_name; ?></p>
- <div class="prof-content neueregular font-size-14 cinza"><?php echo content(15); ?></div>
- </div>
- </div>
- </div>
- <?php } ?>
- <?php }
- }
Advertisement
Add Comment
Please, Sign In to add comment