Skip to content

Commit

Permalink
Limit the news to only one for now on the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyF committed Mar 28, 2012
1 parent 18029c1 commit 28cd184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front-page.php
Expand Up @@ -3,7 +3,7 @@
<div class="block actualites">
<h2><a href="http://sudweb.fr/2012/actualites/"><?php _e('Latest News', 'sudweb') ?></a></h2>

<?php query_posts('posts_per_page=5&post_type=post&order=DESC'); ?>
<?php query_posts('posts_per_page=1&post_type=post&order=DESC'); ?>
<?php while(have_posts()): the_post() ?>
<div>
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title() ?></a></h3>
Expand Down

0 comments on commit 28cd184

Please sign in to comment.