Genesis add title to Blog page
If WordPress doesn’t show a title be default on a blog page.
This code is for Genesis, but will work for any theme if you change the hook.
Create a new file called home.php with the following code. That’s the template file that WordPress uses for its Posts Page.
$content = get_post( $posts_page )->post_content;
$title_output = $content_output = '';
if ( $title ) {
$title_output = sprintf( '
%s
', $title );
}
if ( $content ) {
$content_output = wpautop( $content );
}
if ( $title || $content ) {
printf( '
%s
', $title_output . $content_output );
}
}
genesis();