Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author acosmin

    (@acosmin)

    Sorry, no… Unless you want a static front page.

    Thread Starter massimod

    (@massimod)

    I was fraid so. I don’t like the idea to convert some pages of mine to posts, in order to put them to the home page !

    Thanks !

    Theme Author acosmin

    (@acosmin)

    You can try adding this:

    <?php
    $args = array( 'post_type' => 'page','posts_per_page' => 5, 'include' => '2, 4' );
    
    $myposts = get_posts( $args );
    foreach ( $myposts as $post ) : setup_postdata( $post );
    	get_template_part( 'post-templates/content' );
    endforeach;
    wp_reset_postdata();?>

    where 2 and 4 are your page’s ids, the ones you want to display.

    in index.php, above:

    <?php
    			if ( have_posts() ) :

    Thread Starter massimod

    (@massimod)

    I will try,

    many thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pages to Home’ is closed to new replies.