Problem with Comments

Discussion in 'WordPress' started by Anders, Mar 13, 2007.

  1. #1
    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?
     
    Anders, Mar 13, 2007 IP
  2. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #2
    lol,interesting..
    Can you see the comment which is hidden in your admin panel?
     
    Richie_Ni, Mar 13, 2007 IP
  3. Anders

    Anders Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    Anders, Mar 13, 2007 IP
  4. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #4
    Do you have the problem while using the default theme?
     
    Richie_Ni, Mar 13, 2007 IP
  5. Anders

    Anders Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Just activated the default theme, same problem. Anybody else that has the same problem?
     
    Anders, Mar 13, 2007 IP
  6. DarrenC

    DarrenC Peon

    Messages:
    3,386
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I see 2 comments but it says there should be 3 comments on the page, is this what you mean?
     
    DarrenC, Mar 13, 2007 IP
  7. Anders

    Anders Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yes, that's what I'm talking about.
     
    Anders, Mar 13, 2007 IP
  8. DarrenC

    DarrenC Peon

    Messages:
    3,386
    Likes Received:
    154
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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]
     
    DarrenC, Mar 13, 2007 IP
  9. Anders

    Anders Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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 &raquo;'); ?>
    <?php wp_link_pages(); ?>
    </div>

    <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></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(' - ','&#171; Newer Posts','Older Posts &#187;') ?></p>
    </div><!-- end id:content-main -->
    <?php get_sidebar();?>
    <?php get_footer();?>
     
    Anders, Mar 13, 2007 IP
  10. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #10
    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.
     
    just-4-teens, Mar 13, 2007 IP