<?php
/**
* Template Name: Category
*/
remove_action( 'genesis_loop', 'genesis_do_loop' ); // Remove default loop
add_action( 'genesis_loop', 'category_page' );
function category_page() { ?>
<div class="customcontentslider">
<?php echo do_shortcode('[do_widget id=wooslider_slideshow_posts-2 ]') ?>
</div>
<div class="grids">
<?php if(have_posts()): $j=1; while(have_posts()):the_post(); ?>
<div class="grid <?php if ( $j & 1 ) echo "odd_g"; else echo "even_g"; ?>">
<div class="featured">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('home-middle'); ?></a>
</div>
<a href="<?php the_permalink(); ?>"><h2><?php the_title(); ?></h2></a>
<div class="post_meta">
<span class="date"><?php echo get_the_date(); ?></span> - <span class="author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author_meta( 'display_name' ); ?></a></span> - <span class="comment"> <?php comments_number( '0 Comments', '1 Comment', '% Comments' ); ?></span>
</div>
<div class="excerpt">
<?php $exe = strip_tags(get_the_excerpt()); echo substr($exe,0,100).'...'; ?>
</div>
</div>
<?php $j++; endwhile; endif; ?>
</div>
<div class="g_pagination">
<?php genesis_numeric_posts_nav(); ?>
</div>
<?php }
genesis();