• Resolved kitsunesniper

    (@kitsunesniper)


    So a while back I created my own theme, and it worked. I redesigned my site, and it worked fine – but for some reason, I couldn’t get comments working on any of my pages. Now, I’m pretty sure this is something really silly but I can’t make heads or tails outta this code (which I wrote myself!), so I would appreciate it if someone would help me understand it.

    All I know is that I copied and pasted stuff from my earlier theme (which still works) and now it doesn’t.

    All of this is within the loop. The header / sidebar / footer code works perfectly.

    https://wordpress.pastebin.com/pAU5R9XM

    If you have any questions or suggestions on how to clean this up, lemme know. Thanks for any help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kitsunesniper

    (@kitsunesniper)

    That doesn’t work; it break the site with a PHP error.

    Can you write ‘<?php’ functions -inside- ‘<?php’ functions?

    Samuel B had the right fix. You can’t open a <?php tag inside of an already open <?php tag. That’s why he removed it from Line 36. Now, we need to find that other error. What exactly was the PHP error you saw?

    Thread Starter kitsunesniper

    (@kitsunesniper)

    Okay, I fixed it. The problem was in single.php. I didn’t realize what was wrong until I read the Template Hierarchies topic in the Codex; single.php was -overriding- my index.php file, so any changes I made to it were being ignored.

    See folks, this is why you READ stuff instead of being a moron like me!

    Sorry.

    ETA: New Nine Media, I tried the fix but the site showed me an ‘unexpected <?php’ error. Like I said, I have no idea what I’m doing here. Aheh.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I think I broke my comments, can I get some help?’ is closed to new replies.