Skip to content

Instantly share code, notes, and snippets.

@billrobbins
Created February 10, 2012 16:53
Show Gist options
  • Select an option

  • Save billrobbins/1790844 to your computer and use it in GitHub Desktop.

Select an option

Save billrobbins/1790844 to your computer and use it in GitHub Desktop.
Full All Category Post Section
<?php if(of_get_option('home_posts') == 'yes') { ?>
<div id="home-posts">
<?php $recent = new WP_Query("cat=&showposts=" .of_get_option('home_cat_num'). ""); while($recent->have_posts()) : $recent->the_post();?>
<div class="post-highlight clearfix">
<a href="<?php the_permalink() ?>" rel="noindex"><?php the_post_thumbnail('home-thumbnail'); ?></a>
<h4><a href="<?php the_permalink() ?>" rel="noindex"><?php the_title(); ?></a></h4>
<p class="post-meta"><?php the_time('F j, Y'); ?>&nbsp;/&nbsp;<a href="<?php the_permalink(); ?>#comments"><?php comments_number(__('Make A Comment'), __('1 Comment'), __('% Comments')); ?></a>&nbsp;/&nbsp;<?php the_category(', ') ?></p>
<?php the_content_limit(275, "Read More"); ?>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment