Add an introduction to your blog page in WordPress
Published on July 18, 2019 at 6:32 pmBy default WordPress ignores any content you have added to your posts page and simply lists the available posts.
Add this code to your index.php file to include this content at the top of the page:-
<?php
$posts_page_id = get_option('page_for_posts');
$posts_page = get_post($posts_page_id);
if( $posts_page->post_content ){
echo wpautop( $posts_page->post_content );
}
?>
Comments are closed here.