get_site_url is not returning anything?

I’m using the twentyten theme with the bbpress plugin.
I have the following in my header.php (twentyten):

    <div id="masthead">
        <div id="branding" role="banner">
            <h1><a href="https://wordpress.stackexchange.com/questions/11893/<?php get_site_url(); ?>">TaiwanTalk</a></h1>
        </div><!-- #branding -->
        <div id="access" role="navigation">
            <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
        </div><!-- #access -->
    </div><!-- #masthead -->

get_site_url doesn’t return anything.
Any suggestions?

2 Answers
2

The functions that start with “get_” return the value to what’s calling it. So you would do <a href="https://wordpress.stackexchange.com/questions/11893/<?php echo get_site_url(); ?>"> instead to print out the URL.

Leave a Comment