Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if(is_page('featured-images')){?>
- <?php
- $args=array(
- 'category__in' => 3,
- 'post_status' => 'publish',
- 'paged' => $paged,
- 'posts_per_page' => -1,
- 'caller_get_posts'=> 1,
- );
- $my_query = null;
- $my_query = new WP_Query($args);
- <?php /* Display navigation to next/previous pages when applicable */ ?>
- <?php if ( $my_query->max_num_pages > 1 ) : ?>
- <div id="nav-above" class="navigation">
- <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div>
- <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
- </div><!-- #nav-above -->
- <?php endif; ?>
- if( $my_query->have_posts() ) {
- while ($my_query->have_posts()) : $my_query->the_post(); ?>
- <div style="width:260px; float:left;">
- <a style="color:#fff; text-decoration:none;" href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
- <div style="margin-left:40px;"><?php the_post_thumbnail( $size, $attr ); ?></div>
- <p style="text-align:center; font-size:18px;"><?php the_title(); ?></p></a>
- </div>
- <?php endwhile; } ?>
- <?php /* Display navigation to next/previous pages when applicable */ ?>
- <?php if ( $my_query->max_num_pages > 1 ) : ?>
- <div id="nav-below" class="navigation">
- <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div>
- <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
- </div><!-- #nav-below -->
- <?php endif; ?>
- <?php wp_reset_query(); // Restore global post data stomped by the_post(). ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement