Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul class="mais-conteudo">
- <?php
- wp_reset_query();
- $temp = $wp_query;
- $paged = (get_query_var('paged')) ? get_query_var('page') : 1;
- $argsves = array(
- 'post_type' => 'noticias',
- 'paged' => '$paged',
- 'posts_per_page' => 2,
- 'orderby' => 'date',
- 'order'=>'DESC',
- );
- $wp_query = new WP_Query( $argsves );
- if ($wp_query->have_posts()) :
- while ($wp_query->have_posts()) : $wp_query->the_post();
- ?>
- <li>
- <?php the_post_thumbnail(array(100,100)); ?>
- <div class="mais-content">
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <p><?php the_excerpt(); ?></p>
- </div>
- </li>
- <?php endwhile; endif; ?>
- <div class="btn-mais"><img align= "center" src="<?php echo bloginfo('template_url'); ?>/img/down_arr.png" alt="" /></div>
- <?php posts_nav_link(); ?>
- <?php $wp_query = null; $wp_query = $temp;?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement