Thanks fopr the response, I’ll take a look. Seems odd that, as each theme has its own sidebar.php page so unlikely that two themes would both get the same problem. Of course, the view source you are seeing is generated dynamically. As a result, the html created is not the same as the local files that are uploaded.
here’s the source of the sidebar.php page before it’s uploaded to server.
‘
<div id=”sidebar-wrapper”>
<div id=”sidebar”>
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar() ) : ?>
<?php
$today = current_time(‘mysql’, 1);
if ( $recentposts = $wpdb->get_results(“SELECT ID, post_title FROM $wpdb->posts WHERE post_status = ‘publish’ AND post_date_gmt < ‘$today’ ORDER BY post_date DESC LIMIT 10”)):?>
<div class=”sideblock”>
<h3><?php _e(“Recent Posts”); ?></h3>
<?php
foreach ($recentposts as $post) {
if ($post->post_title == ”)
$post->post_title = sprintf(__(‘Post #%s’), $post->ID);
echo ”
- ID).”‘>”;
the_title();
echo ‘
‘;
}?>
</div>
<?php endif; ?>
<?php if (function_exists(‘wp_theme_switcher’)) { ?>
<div class=”sideblock”>
<h3>Themes</h3>
<?php wp_theme_switcher(‘dropdown’); ?>
</div>
<?php } ?>
<div class=”sideblock”>
<h3>Categories</h3>
<?php wp_list_cats(‘sort_column=name&hierarchical=0’); ?>
</div>
<div class=”sideblock”>
<h3>Archives</h3>
<?php wp_get_archives(‘type=monthly’); ?>
</div>
<div class=”sideblock”>
<h3><?php _e(‘Blogroll’); ?></h3>
<?php get_links(-1, ‘
- ‘, ‘
‘, ”, FALSE, ‘name’, FALSE, FALSE, -1, FALSE); ?>
</div>
<div class=”sideblock”>
<h3>Search</h3>
-
<form method=”get” id=”searchform” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”>
<input type=”text” value=”<?php echo wp_specialchars($s, 1); ?>” name=”s” id=”s” /><input type=”submit” id=”sidebarsubmit” value=”Search” />
</form>
</div>
<div class=”sideblock”>
<h3><?php _e(‘Meta:’); ?></h3>
</div>
<?php endif; ?>
</div>
</div>
</div>
‘