Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: All Articles
- *
- * A custom page template Page Name = Category Name .
- *
- * The "Template Name:" bit above allows this to be selectable
- * from a dropdown menu on the edit page screen.
- *
- * @package WordPress
- * @subpackage Twenty_Ten
- * @since Twenty Ten 1.0
- */
- get_header(); ?>
- <div class="row">
- <div class="eightcol">
- <?php
- $wp_query= null;
- $wp_query = new WP_Query();
- $wp_query->query('showposts=13'.'&paged='.$paged);
- ?>
- <?php if ( $wp_query->have_posts() ) : ?>
- <?php if ( $wp_query->max_num_pages > 1 ) : ?>
- <?php if(function_exists('wp_pagenavi') ) : ?>
- <?php wp_pagenavi(); ?>
- <?php else: ?>
- <?php twentyeleven_content_nav( 'nav-above' ); ?>
- <?php endif; ?>
- <?php endif; ?>
- <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
- <?php get_template_part( 'content', 'blog' ); ?>
- <?php endwhile; ?>
- <?php if ( $wp_query->max_num_pages > 1 ) : ?>
- <?php if(function_exists('wp_pagenavi') ) : ?>
- <?php wp_pagenavi(); ?>
- <?php else: ?>
- <?php twentyeleven_content_nav( 'nav-below' ); ?>
- <?php endif; ?>
- <?php endif; ?>
- <?php endif; ?>
- </div><!-- eightcol -->
- <div class="fourcol last">
- <?php get_sidebar('page'); ?>
- </div>
- </div><!-- row -->
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment