Sidebar – adding sections
-
Hello – HELP – I am trying to add a Contact, Links, and Blog section to my sidebar. But, I am lost. I’ve gone in and also added these three to my link categories … but that only appears on the main page – not of the Pages pages. Thus I am trying to add these three section to the sidebar – but I am not having much luck – go to bogiesblog.com and see what I mean. Your help will be soooo welcomed. Thanks!
Here is the code for my sidebar:
<div id=”sidebar”>- <p>You are currently browsing the archives for the <?php single_cat_title(”); ?> category.</p>
<p><?php next_post_link(‘« previous’) ?> <?php previous_post_link(‘next »’) ?></p>
- <p>You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives
for the day <?php the_time(‘l, F jS, Y’); ?>.</p>
- <p>You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives
for <?php the_time(‘F, Y’); ?>.</p>
- <p>You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives
for the year <?php the_time(‘Y’); ?>.</p>
- <p>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.</p>
-
<p>You can follow any responses to this entry through the <?php comments_rss_link(‘RSS 2.0’); ?> feed.
<?php if ((‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
// Both Comments and Pings are open ?>
You can leave a response, or ” rel=”trackback”>trackback from your own site.
<?php } elseif (!(‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can ” rel=”trackback”>trackback from your own site.
<?php } elseif ((‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!(‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.
<?php } ?>
</p>
- <p>You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives.</p>
- <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<?php /* If this is the search page */ } elseif (is_search()) { ?>
<?php /* If this is a single archive */ } elseif (is_single()) { ?>
<?php /* If this is a monthly archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
<?php } ?>
<li id=”contacts”><h2>Contacts</h2>
<?php wp_list_cats(); ?>
<li id=”pages”><h2>Pages</h2>
<?php wp_list_pages(‘sort_column=menu_order&title_li=’); ?>
<?php if (function_exists(‘wp_theme_switcher’)) { ?>
-
<li id=”themes”><h2><?php _e(‘Themes’); ?></h2>
<?php wp_theme_switcher(); ?>
<?php } ?>
<li id=”archives”><h2>Archives</h2>
<?php get_archives(); ?>
<li id=”categories”><h2>Categories</h2>
<?php wp_list_cats(); ?>
<li id=”links”><h2>Links</h2>
<?php wp_list_cats(); ?>
<li id=”blogs”><h2>Blogs</h2>
<?php wp_list_cats(); ?>
<?php /* If this is the home page */ if (is_home()) { ?>
<?php get_links_list(); ?>
<?php } ?>
</div>
- <p>You are currently browsing the archives for the <?php single_cat_title(”); ?> category.</p>
The topic ‘Sidebar – adding sections’ is closed to new replies.