• Resolved jennibee

    (@jennibee)


    I seriously thought I had come past the woes of learning WP, and now I have yet another issue. A few minutes ago, I noticed that the text on my front page (home.php) was repeating itself. The only thing I changed were a few things on a totally different page. When I look at the source code, the code for the text is there twice, but it is most definately only there once in my php file. Anyone know what could have caused it to do this? I am so stumped!

    My url is http://www.grabertfamily.com

    Thanks for any help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • What does your home.php look like? Now, before you just copy it and paste it here, it’ll look horrible if you do. So either make a copy of it and save it as a .txt file and provide a link to it, or you can paste it in http://pastebin.com and provide a link to that.

    -tg

    Thread Starter jennibee

    (@jennibee)

    http://pastebin.com/371930

    There you go!

    I re-wrote this three times, I am clueless as to what is causing it.

    You have put the welcome text inside the loop. Put it before the loop (=before the <?php if (have_posts()), and it won’t get repeated for every post! (And add code to show the posts!)

    Regards,

    Karel

    Thread Starter jennibee

    (@jennibee)

    Ahhh, ok! Up until now, I had only one post in my blog, which I have set up on a different page. Why didn’t I think of that? At any rate, I wouldn’t have figured out how to change it anyway. Thanks!

    I had suspected that to be the case, but wanted to see the code to confirm it first…. just to make sure.

    glad the mystery is solved.

    -tg

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Home.php Text Repeating itself.’ is closed to new replies.