1.Чтобы показать заголовок
, просто добавьте <?php the_title(); ?>
2.Чтобы показать сообщения в блоге. Я написал немного кода, чтобы показать все сообщения в блоге на странице, я использую сообщения запросов, давайте сделаем это:
if (is_page($your_page_id)) { ?>
<div id="primary" class="content-area">
<div id="content" class="site-content">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; // for paging
$args = array('paged' => $paged);
query_posts($args); // query posts
if (have_posts()) :
while (have_posts()) : the_post();
get_template_part( 'content', get_post_format() ); // This code will display your posts
endwhile;
your_content_nav( 'nav-below' );
endif;
wp_reset_query(); // please, add this function to reset the query
?>
</div><!-- #content .site-content -->
</div>
} else {
// normal page here
}