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="<?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?

Related posts

Leave a Reply

2 comments

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

  2. The function is located in wp-includes/link-template.php. You can take a look at the code here, and see if there are any conditions that look like they could be the problem. If not, then you can either debug, or use “echo” in order to see where the code goes, and what is missing