Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- query_posts('category_name=portfolio&posts_per_page=5');
- if ( have_posts() ) :
- while (have_posts()) : the_post();?>
- <a href="<?php the_Permalink();?>" title="<?php the_title();?> - Paulo Mendes | Fotografia" class="a_posts">
- <div class="posts">
- <div class="posts_foto">
- <div class="titulo_img">
- <div class="titulo2">
- <?php the_title();?>
- </div>
- </div><!-- FECHA_CLASS_TÍTULO -->
- <?php if(has_post_thumbnail( )): ?>
- <?php the_post_thumbnail('featured'); ?>
- <?php else: ?>
- <img alt="<?php the_title(); ?>" src="<?php bloginfo('template_directory'); ?>/img/sem-thumbnail.jpg" />
- <?php endif; ?>
- </div><!-- FECHA_CLASS_POSTS_FOTO -->
- <span class="titulo_posts"><?php the_title();?></span>
- <?php the_excerpt(); ?>
- </div><!-- FECHA_ID_POSTS -->
- </a>
- <?php endwhile; ?>
- <div class="paginator">
- <?php wp_pagenavi(); ?>
- </div><!--DIV_CLASS_PAGINATOR -->
- <?php else:?>
- <?php endif;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement