Created
December 19, 2014 07:05
-
-
Save sunilw/9cab19f4f75c249d2275 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div id="content"> | |
<div class="archive-title"><h1><?php single_cat_title( '', true ); ?></h1></div> | |
<div id="Posts" class="loop"> | |
<?php | |
$args = array( | |
'category_name' => 'their-current-projects', | |
'posts_per_page' => -1 | |
) ; | |
$my_query = new WP_Query($args) ; | |
if ($my_query->have_posts()) : ?> | |
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?> | |
<div class="post-wrapper"> | |
<small class="date"><?php the_time('F jS, Y') ?></small> | |
<div class="title"> | |
<h2> | |
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> | |
<?php the_post_thumbnail( 'single' ); ?> | |
<span><?php the_title(); ?><span> | |
</a> | |
</h2> | |
</div> | |
<div class="excerpt"> | |
<?php the_excerpt(); ?> | |
</div> | |
<div class="post-footer"> | |
<a class="more-link" | |
href="<?php the_permalink(); ?>" alt="<?php the_title_attribute(); ?>">Read more</a> | |
</div> | |
</div><!-- ENDS .post-wrapper --> | |
<?php endwhile; ?> | |
<?php endif; ?> | |
</div> <!-- ENDS .loop --> | |
</div> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment