Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Products Page
- */
- ?>
- <?php get_header(); ?>
- <div id="main">
- <div id="main_content" class="grid_12">
- <h1>Showing All Products</h1>
- <?php
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- $args = array(
- 'post_type' => 'product',
- 'posts_per_page' => 24,
- 'paged' => $paged
- );
- query_posts($args);
- get_template_part('loop', 'product');
- if(function_exists('wp_paginate')){
- wp_paginate();
- }
- ?>
- </div>
- <!--main_content ends-->
- <?php get_sidebar(); ?>
- <div class="clear"></div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement