Oddly enough, I managed to get the author photo to show up properly in the right sidebar with this code:
<?php /* If this is a single post page */ if (is_single()) { ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="authordesc">
<h2>About <?php the_author_firstname(); ?></h2>
<p><?php the_author_description(); ?></p>
<p>Contact <?php the_author_firstname(); ?> via email <a href="mailto:<?php the_author_email(); ?>">here</a>, visit <?php the_author_firstname(); ?> online <a href="<?php the_author_url(); ?>">here</a> or subscribe to <?php the_author_firstname(); ?>'s RSS feed <?php echo '<a href="' . get_author_link(0, $authordata->ID,
$authordata->user_nicename) . 'feed/" title="Feed for posts by ' .
wp_specialchars(the_author($idmode, false)) . '">' . here . '</a>.'; ?></p>
</div>
<?php endwhile; endif; ?>
<?php echo ddpa_show_posts(); ?>
<?php /* If this is an author archive page */ } elseif (is_author()) { ?>
<div id="authordesc">
<?php if(get_query_var('author_name')) : $curauth = get_userdatabylogin(get_query_var('author_name')); else : $curauth = get_userdata(get_query_var('author')); endif; ?>
<h2>About <?php echo $curauth->first_name; ?> <?php echo $curauth->last_name; ?></h2>
<p><?php c2c_the_author_image(); ?><p>
<p><?php echo $curauth->description; ?> Contact <?php echo $curauth->first_name; ?> via email <a href="mailto:<?php echo $curauth->user_email; ?>">here</a> or online <a href="<?php echo $curauth->user_url; ?>">here</a>.</p>
</div>
<?php /* If this is a category page */ } elseif (is_category()) { ?>
<?php if (have_posts()) : ?>
<h2><?php echo single_cat_title(); ?></h2>
<div class="catimage"><p><?php get_cat_icon(); ?></p></div>
<?php add_filter('category_description', 'wpautop'); ?>
<?php add_filter('category_description', 'wptexturize'); ?>
<?php echo category_description(); ?>
<?php $this_category = get_category($cat); ?>
<!-- If category is parent, list it -->
<?php if ($this_category->category_parent == 0) { ?>
<?php $this_category->category_parent = $cat; ?>
<p>Columns and categories within the <strong><?php echo single_cat_title(); ?></strong> section include:</p>
<ul>
<?php
wp_list_cats('list=1&use_desc_for_title=0&child_of=' . $this_category->category_parent); ?>
</ul>
<?php } else { ?>
<!-- If category is not parent, list parent category -->
<?php $parent_category = get_category($this_category->category_parent); ?>
<?php } ?>
<?php endif; ?>
<?php } ?>
Any body have a clue why the exact same code won’t work in in the LEFT sidebar?
It has something to do with the right sidebar being after the loop. I know my client, and I’m sure she’ll want it in the left sidebar unless I can talk her out of it.
Thanks again – Michael