Changed the posts_per_page for homepage in wordpress

Add the following code to the index.php

< ?php query_posts( array( 
                         'post_type' => 'post',
                         'posts_per_page' => 5 ) 
      ); 
?>

 

Leave a Reply

Your email address will not be published. Required fields are marked *