[resolved] get_bloginfo('home') is outputting current page (2 posts)

  1. Dave P.
    Posted 5 years ago #

    If I do

    <?php get_bloginfo('home'); ?>

    Or even:

    <?php get_bloginfo('url'); ?>

    It simply outputs the URL of the current page I'm on instead of the actual WordPress homepage. So if I'm on domain.com/about-page, that's what it outputs rather than domain.com.

    Any ideas what's going on and how I can fix this issue?

  2. Dave P.
    Posted 5 years ago #

    Nevermind, forgot to put echo. Example for those with sample issue:

    <?php echo get_option('home'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic