• On my blog I have lots of links on the sidebar on the index.php page but when you click a catagory to view a post the side bar only shows “archives” and below that “catagories”. You have to go back to index.php to view any links.

    How can I have it so all the sidebar info is always there whatever you are viewing?

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Remove the conditional tags from your sidebar.php file.

    Thread Starter pulpfree

    (@pulpfree)

    Thanks for the reply and sorry if this is a noob question but what exactly do i remove here? Also I forgot to ask how can I make the sidebar visible on a Singlepost? Thanks for the help

    <div id=”sidebar”>

    • <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
    • <!– Author information is disabled per default. Uncomment and fill in your details if you want to use it.

    • <h2>Author</h2>
      A little something about you, the author. Nothing lengthy, just an overview.
    • –>

    • <?php /* If this is a 404 page */ if (is_404()) { ?>
      <?php /* If this is a category archive */ } elseif (is_category()) { ?>
      You are currently browsing the archives for the <?php single_cat_title(”); ?> category.

      <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
      You are currently browsing the /”><?php echo bloginfo(‘name’); ?> weblog archives
      for the day <?php the_time(‘l, F jS, Y’); ?>.

      <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
      You are currently browsing the /”><?php echo bloginfo(‘name’); ?> weblog archives
      for <?php the_time(‘F, Y’); ?>.

      <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
      You are currently browsing the /”><?php echo bloginfo(‘name’); ?> weblog archives
      for the year <?php the_time(‘Y’); ?>.

      <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
      You have searched the /”><?php echo bloginfo(‘name’); ?> weblog archives
      for ‘<?php echo wp_specialchars($s); ?>’. If you are unable to find anything in these search results, you can try one of these links.

      <?php /* If this is a monthly archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
      You are currently browsing the /”><?php echo bloginfo(‘name’); ?> weblog archives.

      <?php } ?>

    • <?php wp_list_pages(‘title_li=<h2>Pages</h2>’ ); ?>

    • <h2>Archives</h2>
      <?php wp_get_archives(‘type=monthly’); ?>
    • <h2>Categories</h2>
      <?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’); ?>

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    <?php get_links_list(); ?>

    • <h2>Meta</h2>

    <?php } ?>

    </div>

    Thread Starter pulpfree

    (@pulpfree)

    Do I need to change the theme if I need the side bar in every view? I’m using the default theme now.

    Yep, either change the theme or google for the variants of Kubrick that show the sidebar at all times. Which I guess is changing the theme too.

    Thread Starter pulpfree

    (@pulpfree)

    Hi everyone ??

    I got the verison of Kubrick which shows the sidebar at all times but I’m having trouble figureing out what moshu meant by removing the conditional tags to show links at all times.

    I tired adding <?php get_links_list(); ?> to

    • <h2>Categories</h2>
      <?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’); ?>

    on the sidebar.php and that worked actually BUT on the index home page the links repeated after the last link the list started over again lol.

    So what am I doning wrong please ??

    thanks

    been a while since I saw that version (got a link?) but doesn’t it show links at all times? If so, you shouldn’t have to remove the conditionals.

    Thread Starter pulpfree

    (@pulpfree)

    I haven’t removed the tags cause I don’t know what they are lol

    Well, here’s where you learn what they are: Conditional_Tags

    Daughter’s in the room, so I’ll pass on peeking right now. :-p

    Thread Starter pulpfree

    (@pulpfree)

    ok understood I removed the link ?? Ya I read that still no clue lol

    Thread Starter pulpfree

    (@pulpfree)

    Any ideas ?? my code is above ?? Any help would be nice

    This line:
    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    <?php get_links_list(); ?>

    make it:
    <?php get_links_list(); ?>

    IMPORTANT!
    Also remove this:
    <?php } ?> from under Meta, just before the closing </div>

    Thread Starter pulpfree

    (@pulpfree)

    wow haha thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How come Links aren’t shown on individual topics?’ is closed to new replies.