I just noticed this problem. When I load up my main blog, my sidebar.php is displayed fine. However, after I click on a category from the "Categories" tab, when it displays the page, my side bar "Meta" tab disappears (the whole sidebar.php is not displayed). The "Meta" tab also disappears after I use the "Search". Is there an option in wordpress that would allow me to display the "Meta" tab all the time, not just on the main startup page of the blog. Or is there a file, I can manually edit? I would really appreciate any help you guys can provide me. Thanks in advance
That will be a setting on your sidebar.php which causes certain content to only show on the index. Would need to see the code to assist further.
Hi Alan, Thanks for taking the time to help me. Here is the sidebar.php code below <div id="sidebar"> <ul> <?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <li><h2>Search</h2> <ul> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </ul> </li> <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. <li><h2>Author</h2> <p>A little something about you, the author. Nothing lengthy, just an overview.</p> </li> --> <?php if ( is_404() || is_category() || is_day() || is_month() || is_year() || is_search() || is_paged() ) { ?> <li> <?php /* If this is a 404 page */ if (is_404()) { ?> <?php /* If this is a category archive */ } elseif (is_category()) { ?> <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p> <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for the day <?php the_time('l, F jS, Y'); ?>.</p> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for <?php the_time('F, Y'); ?>.</p> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for the year <?php the_time('Y'); ?>.</p> <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p> <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p> <?php } ?> </li> <?php }?> <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> <li><h2>Archives</h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?> <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> <?php wp_list_bookmarks(); ?> <li><h2>Meta</h2> <ul> </ul> </li> <?php } ?> <?php endif; ?> </ul> </div>
Try removing this, see how you get on: and Which is basically saying only display links and meta if this is the home page or a page meaning search and content will have it disabled. Let me know if that fixes your issue.
Sadly, no it didn't fix it. It gave me an error below on the main page now. It won't show anything from the left side (ie, Search, Category, Meta, etc..) It only displays this error in it's place Parse error: syntax error, unexpected '}' in /home/starscream/public_html/massiveblog/wp-content/themes/plus/sidebar.php on line 86
I'm assuming that error is referring to this code at the end of the sidebar.php but I removed it but it didn't fix it <?php } ?>
Alan|AzH given proper instruction as far as i know. Little correction in that. You need to remove below given codes. Not this one <?php endif; ?> BTW there is nothing in your meta as per your given code. DON.