View Full Version : Right Side Bar only on Posts Page in Wordpress

02-09-2010, 08:17 PM
how come the right sidebar only appears on the page with my post listings: http://www.diveneycue.com/wordpress/?page_id=6? I'd like it to appear on every page.

Please advise. thanks!

page.php code

<?php get_header(); ?>

<div id="contentwide">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<?php list_subpages_andreas01(); ?> <?php // This generates the subpage menu. If you don't want to use it, delete this line. ?>

<div class="post">
<h2><?php the_title(); ?></h2>
<?php the_content('<p class="serif">Read more &raquo;</p>'); ?>
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
<?php edit_post_link('Edit this page','<p>','</p>'); ?>
<?php comments_template(); ?>
<?php endwhile; endif; ?>

<?php get_footer(); ?>

sidebar.php code

<div id="extras">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Right Sidebar') ) : else : ?>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>

<?php get_calendar(1); ?>
<?php wp_list_cats('sort_column=name&list=1&optioncount=0&hierarchical=1&children=1&hide_empty=1&feed=RSS'); ?>
<li><?php wp_tag_cloud('unit=em&smallest=0.8&largest=1.8&number=40'); ?></li>
<?php wp_list_bookmarks('title_li=&category_before=&category_after=&show_images=0&show_description=0'); ?>
<?php wp_meta(); ?>
<?php endif; ?>