Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: post grid
- *
- * @package WordPress
- * @subpackage Twenty Ten
- * @since 3.0.0
- */
- ?>
- <?php get_header(); ?>
- <div id="container">
- <div id="content">
- <center><div id="catmenu"><ul>
- <?php wp_list_categories( 'orderby=name&include=1,2,3,4,5,6,7&title_li='); ?>
- </ul></div>
- <?php
- /* Run the loop to output the posts.
- * If you want to overload this in a child theme then include a file
- * called loop-index.php and that will be used instead.
- */
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- query_posts('cat=0&posts_per_page=18&paged='.$paged); //set your own query here
- get_template_part( 'loop', 'grid' );
- wp_reset_query();
- ?>
- </div><!-- #content -->
- </div><!-- #container -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement