• 1.
    <?php
  • 2.
    /*
  • 3.
    Template Name: Portfolio
  • 4.
    */
  • 5.
    ?>
  • 6.
    <?php get_header(); ?>
  • 7.
    <section id="projects">
  • 8.
    	<ul>
  • 9.
    		<?php wp_reset_postdata(); ?>
  • 10.
    	    <?php query_posts('posts_per_page=-1&post_type=portfolio'); ?>
  • 11.
    		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  • 12.
    		<li class="clearfix">
  • 13.
    			<figure class="left">
  • 14.
    				<a href="<?php echo $url_portfolio;?>"><?php the_post_thumbnail(); ?></a>
  • 15.
    			</figure>
  • 16.
    			<article class="right">
  • 17.
    				<h1><a href="<?php echo $url_portfolio;?>"><?php the_title(); ?></a></h1>
  • 18.
    				<?php the_content() ?>
  • 19.
    			</article>
  • 20.
    		</li>	
  • 21.
    		<?php endwhile; ?>
  • 22.
    		<?php endif; ?>
  • 23.
    	</ul>
  • 24.
    </section>
  • 25.
    <?php get_footer(); ?>
<?php /* Template Name: Portfolio */ ?> <?php get_header(); ?> <section id="projects"> <ul> <?php wp_reset_postdata(); ?> <?php query_posts('posts_per_page=-1&post_type=portfolio'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <li class="clearfix"> <figure class="left"> <a href="<?php echo $url_portfolio;?>"><?php the_post_thumbnail(); ?></a> </figure> <article class="right"> <h1><a href="<?php echo $url_portfolio;?>"><?php the_title(); ?></a></h1> <?php the_content() ?> </article> </li> <?php endwhile; ?> <?php endif; ?> </ul> </section> <?php get_footer(); ?>

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter