For my website, I am using a static home page page Home (template front-page.php) and for posts- page News (template home.php)
I need to show all the post titles and exceprts on that page News (templ. home.php), but also show the original title and the_content from that page News itself.
This code below while statement shows all the posts, which is good, but the top the_title
also shows the title from the first post, not from the News page itself.
How to achieve what I need?
<?php get_header(); ?>
<?php
the_title();
the_content();
?>
<?php if(have_posts()) while(have_posts()) : the_post(); ?>
<?php
the_title();
?>
<?php
the_content();
?>
<?php
endwhile;
?>
<?php get_footer(); ?>