• Resolved Dave P.

    (@callmedpit)


    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?

Viewing 1 replies (of 1 total)
  • Thread Starter Dave P.

    (@callmedpit)

    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.