Skip to content

Instantly share code, notes, and snippets.

@billrobbins
Created January 19, 2012 15:48
Show Gist options
  • Select an option

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

Select an option

Save billrobbins/1640689 to your computer and use it in GitHub Desktop.
Foundation Lower Posts
<div id="home-posts">
<?php $recent = new WP_Query("cat=" .of_get_option('home_cat'). "&showposts=10"); 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(); ?>
<a href="http://www.yoursite.com/blog">Link Name</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment