I have a strange problem with Wordpress, nothing really serious though. The following two posts are supposed to have three/one comments: http://taofilms.de/wordpress/2007/03/09/im-on-tv/ http://taofilms.de/wordpress/2006/05/27/i-want-to-be-remembered/ Well, the first post just has two comments while the second has no comments at all. Can you explain this to me?
That what´s so strange about it. I can´t see any comments in my admin panel. As I´said, nothing serious, but somehow disturbing.
In the index,php or the main template file can you paste the PHP code near the comments code. I used to use the same theme, and I didn't have this problem so I suspect something funny has gone on with the code [or database]
My main index template: <?php get_header();?> <div id="content"> <div id="content-main"> <script type="text/javascript"><!-- google_ad_client = "pub-5542053645528187"; google_alternate_ad_url = "http://www.text-link-ads.com/starter_kit.php?ref=59001"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; //2007-02-26: Erster Channel google_ad_channel = "4105267343"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "11593C"; google_color_text = "000000"; google_color_url = "008000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <?php if ($posts) { $AsideId = get_settings('mistylook_asideid'); function ml_hack($str) { return preg_replace('|</ul>\s*<ul class="asides">|', '', $str); } ob_start('ml_hack'); foreach($posts as $post) { start_wp(); ?> <?php if ( in_category($AsideId) && !is_single() ) : ?> <ul class="asides"> <li id="p<?php the_ID(); ?>"> <?php echo wptexturize($post->post_content); ?> <br/> <?php comments_popup_link('(0)', '(1)','(%)')?> | <a href="<?php the_permalink(); ?>" title="Permalink: <?php echo wptexturize(strip_tags(stripslashes($post->post_title), '')); ?>" rel="bookmark">#</a> <?php edit_post_link('(edit)'); ?> </li> </ul> <?php else: // If it's a regular post or a permalink page ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="posttitle"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <p class="post-info"><?php the_time('M jS, Y') ?> by <?php the_author_posts_link() ?> <?php edit_post_link('Edit', '', ' | '); ?> </p> </div> <div class="entry"> <?php the_content('Continue Reading »'); ?> <?php wp_link_pages(); ?> </div> <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> <?php comments_template(); ?> </div> <?php endif; // end if in category ?> <?php } } else { ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php } ?> <p align="center"><?php posts_nav_link(' - ','« Newer Posts','Older Posts »') ?></p> </div><!-- end id:content-main --> <?php get_sidebar();?> <?php get_footer();?>
try disabling any plugins you have and see if that changes anything. if not try downloading a fresh copy of wp and re-upload the default theme.