How to get Home Page title in WordPress

I want to show home page title in breadcrumb. I have tried the get_the_title() function, but it requires page id as parameter. I believe it will break when I change the front page to other page.
Is there a function that is more change prone?

Related posts

3 comments

  1. this is how I solved my problem

    $home_title = get_the_title( get_option('page_on_front') );
    

    that way, when I change home page with diferent page, the code won’t break. It also works on multisite.

  2. <?php echo bloginfo('title'); ?>
    

    This will echo you title of your website given in settings.

Comments are closed.