View difference between Paste ID: KTQ0dfqj and MEk7zJN0
SHOW: | | - or go back to the newest paste.
1
<?php
2
/**
3
 * Template Name: Portfolio 4 Columns Isotope Template
4
 * Description: A Page Template that adds a portfolio to pages
5
 *
6
 * @package WordPress
7
 * @subpackage Index
8
 * @since Index 1.0
9
 */
10
11
get_header(); ?>
12
13
		<div id="primary">
14
			<div id="content" role="main">
15
			
16
			<?php if ( have_posts() ) : ?>
17
			
18
				<?php while ( have_posts() ) : the_post(); ?>
19
20
						<?php get_template_part( 'content', 'page' ); ?>
21
22
					<?php endwhile; // end of the loop. ?>
23
			
24
			<?php endif; ?>
25
			
26
			<div id="block-portfolio-wrapper" class="clearfix">
27
			<div id="block-portfolio" class="clearfix">
28-
				<ul id="filters" class="clearfix option-set">
28+
29-
					<li>
29+
30-
						<a href="#" data-filter="*" class="selected"><?php _e( 'All Categories', 'higher' ) ?></a></li>
30+
31-
					</li>
31+
32-
					<?php wp_list_categories( array( 'title_li' => '', 'show_option_none' => '', 'taxonomy' => 'portfolio', 'walker' => new Walker_Portfolio_Category() ) ); ?>
32+
33-
                </ul>
33+
34
			<?php  if ( $wp_query->have_posts() ) : ?>
35
36
				<?php /* Start the Loop */ ?>
37
				<?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
38
39
					<?php get_template_part( 'content' ); ?>
40
41
				<?php endwhile; ?>
42
43
			<?php endif; ?>
44
			
45
			<?php wp_reset_query(); ?>
46
			</div><!-- #portfolio -->
47
			</div><!-- #block-portfolio -->
48
			</div><!-- #block-portfolio-wrapper -->
49
			
50
			</div><!-- #content -->
51
		</div><!-- #primary -->
52
53
<?php get_footer(); ?>