Sidebar problem

Discussion in 'WordPress' started by BLaZeR, Sep 23, 2007.

Thread Status:
Not open for further replies.
  1. #1
    On the homepage of my blog
    http://www.travischan.com
    The 2 sidebar columns are there but if you go a post
    http://www.travischan.com/test/

    One disappears?

    Here is my sidebar.php
    :eek:
     
    BLaZeR, Sep 23, 2007 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,830
    Likes Received:
    4,541
    Best Answers:
    123
    Trophy Points:
    665
    #2
    You have a nice little <?php if(is_home()) in there.

    so your code should look like this...
    <div id="sidebar">
    <ul>
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
    <?php if(is_home()) mistylook_ShowAbout(); ?>
    <?php if(!is_home()) mistylook_ShowRecentPosts();?>
    <li class="sidebox">
    <h2><?php _e('Categories'); ?></h2>
    <ul>
    <?php
    if (function_exists('wp_list_categories'))
    {
    wp_list_categories('show_count=1&title_li=');
    }
    else
    {
    wp_list_cats('optioncount=1');
    }
    ?>
    </ul>
    </li><?php mistylook_ShowLinks(); ?>
    </div><!-- end sidebar -->
    <div id="sidebar2">
    <li class="sidebox2">
    <h2><?php _e('Archives'); ?></h2>
    <ul><?php wp_get_archives('type=monthly&show_post_count=true'); ?></ul>
    </li>
    <li class="sidebox2">
    <h2><?php _e('Meta'); ?></h2>
    <ul>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"
    
    >Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
    <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
    <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal
    
    publishing platform.">WordPress</a></li>
    </ul> <?php wp_meta(); ?>
    
    </li>
    
    <?php endif; ?>
    
    </ul>
    </div><!-- end sidebar2 -->
    </div><!-- end id:content -->
    </div><!-- end id:container -->
    Code (markup):
     
    sarahk, Sep 23, 2007 IP
    BLaZeR likes this.
  3. BLaZeR

    BLaZeR Peon

    Messages:
    1,567
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks a lot, problem solved!
     
    BLaZeR, Sep 23, 2007 IP
  4. sat123

    sat123 Banned

    Messages:
    1,600
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    0
    #4
    this is best blogging forum
     
    sat123, Sep 24, 2007 IP
Thread Status:
Not open for further replies.