Skip to content

Instantly share code, notes, and snippets.

@fleeting
Created January 7, 2010 21:57
Show Gist options
  • Save fleeting/271616 to your computer and use it in GitHub Desktop.
Save fleeting/271616 to your computer and use it in GitHub Desktop.
<?php global $more;
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('showposts=1');
?>
<?php if (have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<?php $more = 0; ?>
<h4><?php the_title(); ?></h4>
<?php the_content_rss('', TRUE, '', 60); ?> <a href="<?php the_permalink(); ?>" title="Read More">Read More</a>
<?php endwhile; else: endif; ?>
<?php $wp_query = null; $wp_query = $temp;?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment