Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Portfolio 4 Columns Isotope Template
- * Description: A Page Template that adds a portfolio to pages
- *
- * @package WordPress
- * @subpackage Index
- * @since Index 1.0
- */
- get_header(); ?>
- <div id="primary">
- <div id="content" role="main">
- <?php if ( have_posts() ) : ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', 'page' ); ?>
- <?php endwhile; // end of the loop. ?>
- <?php endif; ?>
- <div id="block-portfolio-wrapper" class="clearfix">
- <div id="block-portfolio" class="clearfix">
- <ul id="filters" class="clearfix option-set">
- <li>
- <a href="#" data-filter="*" class="selected"><?php _e( 'All Categories', 'higher' ) ?></a></li>
- </li>
- <?php wp_list_categories( array( 'title_li' => '', 'show_option_none' => '', 'taxonomy' => 'portfolio', 'walker' => new Walker_Portfolio_Category() ) ); ?>
- </ul>
- <div id="portfolio" class="clearfix">
- <?php // Create a new query object. This will allow us to make proper use of our navigation ?>
- <?php $wp_query = new WP_Query(); ?>
- <?php $wp_query->query('post_type=portfolio&posts_per_page=2&post_status=publish'.'&paged='.$paged); ?>
- <?php if ( $wp_query->have_posts() ) : ?>
- <?php /* Start the Loop */ ?>
- <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
- <?php get_template_part( 'content' ); ?>
- <?php endwhile; ?>
- <?php endif; ?>
- <?php wp_reset_query(); ?>
- </div><!-- #portfolio -->
- </div><!-- #block-portfolio -->
- </div><!-- #block-portfolio-wrapper -->
- </div><!-- #content -->
- </div><!-- #primary -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment