Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-lg-8">
- <!--Entrada-->
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <!--Anuncio-->
- <?php if( $wp_query->current_post == 3 ) { ?>
- //mianuncio
- <?php } ?>
- <!--Anuncio-->
- <div class="card-body phome">
- <a href="<?php the_permalink($post);?>">
- <h2 class="entry-title"><?php the_title();?></h2>
- </a>
- <?php
- $sep = '';
- foreach ((get_the_category()) as $cat) {
- echo $sep . '<a href="' . get_category_link($cat->term_id) . '" class="cathome ' . $cat->slug . '" title="Ver todos los post de '. esc_attr($cat->name) . '">' . $cat->cat_name . '</a>';
- $sep = ', ';
- }
- ?>
- <?php the_excerpt();?>
- </div>
- <?php endwhile; endif; ?>
- <!--Entrada-->
- <!--Paginacion-->
- <div class="card-body">
- <?php get_template_part('template-parts/content', 'paginacion');?>
- </div>
- <!--Paginacion-->
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement