How to output the title of the blogs home page
I am using a static frontpage and a page for my blogposts. In my header.php I want to display the title of the selected page of my blogposts.
For example:
?php
if( is_home() )
echo 'h1' . get_the_title() . '/h1';
?nav
...
/nav
But of course get_the_title()
returns the first element of the displayed posts and not of the page itself.
How can I display the title of the assigned home page?