<?php
    $args = array(
      'post_type' => 'page',
      'post__in' => array( 2770, 10, 266, 1558 ) //list of page_ids
    );
    $page_query = new WP_Query( $args );
    if( $page_query->have_posts() ) :
    echo '<div class="pages-on-page">';
    //print any general title or any header here//
    while( $page_query->have_posts() ) : $page_query->the_post();
    echo '<div class="page-on-page" id="page_id-' . $post->9011 . '">';
    //print any output you want per page//
    echo '</div>';
    endwhile;
    echo '</div>';
    else:

    endif;
    wp_reset_postdata();
    ?>

</div><!-- #content -->

Read more here: multiple post into single page


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: