Number of Latest News on Homepage

How can I change the number of latest news on the home page?

Please follow these instructions:

0. backup page-home.php
1. open page-home.php
2. find these lines:

 $args['post_type'] = 'post';
 $args['post_status'] = 'publish';
 $args['posts_per_page'] = 3;
 if ($issuesCategory) {
 $excludeCategory = '-' . $issuesCategory;
 $args['cat'] = $excludeCategory;
 }

and change them to read:

 $args['post_type'] = 'post';
 $args['post_status'] = 'publish';
 $args['posts_per_page'] = 9;
 if ($issuesCategory) {
 $excludeCategory = '-' . $issuesCategory;
 $args['cat'] = $excludeCategory;
 }

Please note: we used number 9, but you can choose any odd number which will fit your needs: 3, 5, 7, 9, 11, etc.

3. find these lines:

 if ($latestIndex == 3) {
 $newsClass = 'news width50 right';
 $dfs = 'small';
 $tSize = 'dfs';
 } elseif ($latestIndex == 2) {
 $newsClass = 'news width50 left';
 $dfs = 'small';
 $tSize = 'dfs';
 } else {

and change them to read

 if (($latestIndex % 2 == 1) && ($latestIndex > 1)) {
 $newsClass = 'news width50 right';
 $dfs = 'small';
 $tSize = 'dfs';
 } elseif (($latestIndex % 2 == 0) && ($latestIndex > 1)) {
 $newsClass = 'news width50 left';
 $dfs = 'small';
 $tSize = 'dfs';
 } else {

4. find these lines:

<?php
 if ($latestIndex == 1) { ?>
 <div class="horDashed"></div>
 <?php } ?>

and change them to read:

<?php
 if ($latestIndex == 1) { ?>
 <div class="horDashed"></div>
 <?php } ?>
<?php
 if (($latestIndex % 2 == 1) && ($latestIndex > 1)) { ?>
 <div class="clear"></div>
 <?php } ?>

5. save

0