• Resolved andyt963

    (@andyt963)


    Hey guys

    I’ve been searching forums all morning and couldn’t find anything to help me.

    When someone tries to comment one of my posts on the home page (I have a query getting only certain posts from a certain category) it shows the respond/comment page ok but repeats the comments form and post 3 times.

    An example of this is here:

    https://www.drop-gauge.com/hosting/violentdisorder/?p=11#respond

    I have been playing with my loop and all the div tages and still no success.

    Any suggestions as to what I may have done wrong?

    *Note: This doesnt happen in other themes and I have a site very similar where this is not a problem. I have tested all plugins and am running wordpress 2.02.

Viewing 7 replies - 1 through 7 (of 7 total)
  • This doesnt happen in other themes
    So, it’s theme issue. It is as if calling the comments template files 3 times ??
    Check your single.php file!

    You may want to consider an upgrade to the 2.0.3. security update.

    Thread Starter andyt963

    (@andyt963)

    Thanks for the quick reply.

    I am using the ‘classic’ theme because it was the most basic and easiest for me to heavily modified therefore I have no single.php file as this theme does not appear to use it.

    I also used the ‘classic’theme for other sites and did not have this problem.

    Any other page I should try?

    <em…to heavily modify…

    I guess this is the keyword. And if derivated from classic – everything should be in the index.php. Are you using by any chance multiple Loops in it?

    Thread Starter andyt963

    (@andyt963)

    Also I just noticed if I delete my first call to the loop from index.php

    ‘<?php $posts = get_posts(‘category=1&showposts=5’);
    foreach ($posts as $post) :
    setup_postdata($post);
    ?>’

    before my

    ‘<?php if (have_posts()) : the_post(); ?>
    <?php the_content(__(‘(more…)’)); ?>’

    and the

    ‘<?php endforeach; ?>’

    It eradicates this problem but then I cannot show the 5 posts from category 1 as I want. I have tried namy efforts at using a replacement but none of the other plugins or loop examples work the way I want.

    Thread Starter andyt963

    (@andyt963)

    aha you replied as I was writing.

    i am using multiple loops however it is the only way I have found to get the result I need.

    A lot of the examples and plugins dont let me have other loops and plugins on the homepage or in my includes/sidebars.

    Also as mentioned I have used these loops on other sites and had no problems.

    Since you started to post here… you could take a vanilla index and save it as single.php (with the basic, unmodified Loop) – and you would have been set ??

    Thread Starter andyt963

    (@andyt963)

    Thanks I had tried copying and pasting the single.php file previously but must have done it to a wrong folder.

    Thanks for the help all is now good.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Comments repeating on respond page’ is closed to new replies.