WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Content doubles on archives and pages (4 posts)

  1. nikkiwraith
    Member
    Posted 7 years ago #

    I'm running WP 2.1.3, and the fluidity3c theme. Posts show up just fine on the index page, but in the archives, and on their own pages, the content is doubled. Example URLs are:

    http://blogs.tattooeddad.com

    and

    http://blogs.tattooeddad.com/?p=39

    I know this much from troubleshooting over the last couple of days:

    It does not happen in other themes.
    It does not happen in a fresh copy of Fluidity3c.
    It must be something I've done.

    But using every trick I know, I can't isolate it!

    Can anyone tell me what I should be looking for?
    All the code seems right...

    My head hurts.

    Thanks!

  2. nikkiwraith
    Member
    Posted 7 years ago #

    Got it! After much "comment it out, and see what happens" hacking,
    I found this line to be the problem:

    <!-- code for just the titles -->
     <?php
    if ($single) {
    the_content();
    }
    else {//no content, nothing.
    }
    ?>
    <!-- end title code -->

    Now, I have no idea why, but it fixed the problem.

  3. karreninv
    Member
    Posted 7 years ago #

    Hi,

    could you tell me where to put this code?

    I have the same problem and it drives me nuts!
    If i create a new page its gone and out of nothing it doubles , quaters the content.....????

    Thanks so much for your help!!!

  4. nikkiwraith
    Member
    Posted 7 years ago #

    I beleive those lines are in index.php (inside of your theme) and need to be removed, or simply commented out. Put <!-- at the beginning, and --> at the end. See if that helps.

Topic Closed

This topic has been closed to new replies.

About this Topic