And Now The Comment Counter Is Broken…

My WordPress installation prompted me to update to version 7 this evening. Normally these things go off without a hitch, but I—for some reason this time—had the foresight to run a backup first.

That being said, the few lines of code for my comment counter went missing after the upgrade, which is why you may see [my comment counter] and not a number next to the Comments link.

I checked the backup .php file where I thought the counter code had been inserted, but there’s nothing there that references [my comment counter] and after hours of scouring the internet, I can’t find the original source I used and every other solution I’ve found breaks the site completely.

It’s now nearly 1 a.m. and I’m giving up for tonight. I need to get to sleep.

Maybe I’ll find the original code tomorrow…

UPDATE 5/21: WOOHOO! I found where the code was located and restored it from backup! It’s working again! (And because the code wasn’t where I expected it to be, the process is now documented because I will probably totally forget how to fix this with the next update if it’s not written down.)

0 Comments

0 comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.