Front Page whith 6 post instead of 2


Author Message
Black

Posted: 10/17/2013
Quote message 

Hi!!

I need to show in front page the 6 latest posts instead of the latest 2. I tried to set this option in the admin panel, but it doesn't work; I think I have to change some php files. Someone knows the right php code and which files should I modified?

I've used Artisteer 4 and my Wordpress version is 3.6.

That's my home.php code:
<?php get_header(); ?> 			<?php get_sidebar('top'); ?> 			<?php 			if (have_posts()) { 				/* Display navigation to next/previous pages when applicable */ 				if (theme_get_option('theme_' . (theme_is_home() ? 'home_' : '') . 'top_posts_navigation')) { 					theme_page_navigation(); 				} 				?> <div class="content-layout">     <div class="content-layout-row">     <div class="layout-cell" style="width: 50%" >         <?php theme_get_next_post(); ?>     </div><div class="layout-cell" style="width: 50%" >         <?php theme_get_next_post(); ?>     </div>     </div> </div>  				<?php 				/* Display navigation to next/previous pages when applicable */ 				if (theme_get_option('theme_bottom_posts_navigation')) { 					theme_page_navigation(); 				} 			} else { 				theme_404_content(); 			} 			?> 			<?php get_sidebar('bottom'); ?> <?php get_footer(); ?>

 
Murry Bendiggerdong

Posted: 10/17/2013
Quote message 

Quote :
I need to show in front page


This isn't the Front Page forum it's for Artisteer.

http://www.tek-tips.com/threadminder.cfm?pid=256
 
Arthasz

Posted: 8/13/2014
Quote message 

hahahahaha :-D :-D :-D

Though the answer was very funny, im have the same question. How do I edit the number of posts or for example if i want only a list of post titles on the home/front/blog page?
 
www

Posted: 9/12/2014
Quote message 

Put this in your functions.php.

function five_posts_on_homepage( $query ) {     if ( $query->is_home() && $query->is_main_query() ) {         $query->set( 'posts_per_page', 6 );     } } add_action( 'pre_get_posts', 'five_posts_on_homepage' );