<?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(); ?>
Quote :I need to show in front page
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' );