On Getting Things Fixed

Hopefully, this will be the last post on upgrading WordPress. Hopefully. 😉

It took about two hours, but the sidebar links finally work again. It wasn’t an easy fix–I dug through files of the WordPress code to figure out how the new WordPress code passed arguments to the database to pull link categories and, by extension, the links themselves. “The file’s called Links, let’s see what’s in there!” “Wait! This file is called Categories, there’s gotta be something I can use in there!” “Oh, bugger, what about this file over here!”

Ultimately, I pieced together one line of .php code, dropped it into the file that controls the sidebar, and voila!

Actually, it took two tries. Don’t think I’m that good. 🙂

But I was very close the first time. That attempt gave me all the link categories (plus the associated links), along with all the categories I’ve used for posts over the years. So then it became a case of figuring out how to pass the argument to filter out the post categories and leave the link categories.

So back to reading code I went. But it didn’t take nearly as long. Maybe ten more minutes.

And now, it’s done. The upgrade. And to think I thought it’d be a fifteen minute deal two days ago. Oh, how little did I know….

Published by Allyn

A writer, editor, journalist, sometimes coder, occasional historian, and all-around scholar, Allyn Gibson is the writer for Diamond Comic Distributors' monthly PREVIEWS catalog, used by comic book shops and throughout the comics industry, and the editor for its monthly order forms. In his over ten years in the industry, Allyn has interviewed comics creators and pop culture celebrities, covered conventions, analyzed industry revenue trends, and written copy for comics, toys, and other pop culture merchandise. Allyn is also known for his short fiction (including the Star Trek story "Make-Believe,"the Doctor Who short story "The Spindle of Necessity," and the ReDeus story "The Ginger Kid"). Allyn has been blogging regularly with WordPress since 2004.

One thought on “On Getting Things Fixed

Leave a Reply

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