Skip to content

Commit

Permalink
made all news show up on the news page, not just last 10 items
Browse files Browse the repository at this point in the history
  • Loading branch information
hdragomir committed Oct 18, 2011
1 parent 105d373 commit f372b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page-stiri.php
Expand Up @@ -18,7 +18,7 @@
<?php endif; ?>

<div class="article-list clearfix">
<?php $news = new WP_Query('numberposts=-1&cat=-' . PRESS_RELEASE_CATEGORY);
<?php $news = new WP_Query('posts_per_page=-1&cat=-' . PRESS_RELEASE_CATEGORY);
if($news->have_posts()):
foreach($news->get_posts() as $news_item): setup_postdata($news_item); $news->the_post();
?>
Expand Down

0 comments on commit f372b73

Please sign in to comment.