Forums

Get Blog Name in Network (1 post)

  1. jumust
    Member
    Posted 1 year ago #

    Hi,
    I have a newtwork of sites and I'm editing the footer adding a function to show up different text for each site of the network like:

    <div id="copyright" class="col-left">
    <?php
    global $blog_id;
    if ($blog_id == 16) {
    //PBS blog Footer Copyright
    echo '<p>© 2011 Presented by PBS SoCal. All Rights Reserved</p>';
    } else {
    //Default Footer Copyright
    echo '<p>© 2011 <?php bloginfo(); ?>. All Rights Reserved</p>';
    }
    ?>
    </div>

    After I insert this Site Conditional I can't get anymore the Site Name with this <?php bloginfo(); ?>
    I also tried <?php bloginfo('name'); ?>

    http://screencast.com/t/2ns0giDH

    What am I doing wrong?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic