вы можете l oop it.
Просто сделайте al oop для сообщений:
<!-- Start post loop here -->
<?php $query = new wp_query( array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => '3' ) ); ?>
<?php if ( $query->have_posts() ): while ( $query->have_posts() ): $query->the_post(); ?>
<!-- Start post template here -->
<div><a aria-label="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
<!-- End post template here -->
<?php endwhile; endif; ?>
<!-- End post loop here -->
и al oop для страниц:
<!-- Start page loop here -->
<?php $query = new wp_query( array( 'post_type' => 'page', 'post_status' => 'publish', 'posts_per_page' => '3' ) ); ?>
<?php if ( $query->have_posts() ): while ( $query->have_posts() ): $query->the_post(); ?>
<!-- Start page template here -->
<div><a aria-label="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
<!-- End page template here -->
<?php endwhile; endif; ?>
<!-- End page loop here -->
гл.