Support » Fixing WordPress » get_bloginfo(‘home’) is outputting current page

  • Resolved Dave P.


    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, that’s what it outputs rather than

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

Viewing 1 replies (of 1 total)
  • Nevermind, forgot to put echo. Example for those with sample issue:

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

Viewing 1 replies (of 1 total)
  • The topic ‘get_bloginfo(‘home’) is outputting current page’ is closed to new replies.