Been loathe to change anything about the basic ZBench theme I downloaded a few years ago. I don’t mean I haven’t wanted to change the look of the site; it doesn’t mean I haven’t do ne just a little customization.
It means I haven’t wanted to get into the code. I have been burned pretty badly by that in the past even with backups and me copying code elsewhere before proceeding.
But I just changed the alphabetical order of my links.
Now that I think about it though, I don’t know if it was because I installed the My Link Order plug-in or simply because I changed a bit of code.
So I went to WordPress.org and searched for “alphabetical links” and found “My Link Order.” Version 3.5. Rashly, without backing up, I installed it.
Then it took me a few steps to find out how to get to the themes and to the Edit Themes part.
The page for the My Link Order plugin had a “Breaking Change Made in 3.1.4”
“If you do not use widgets to display links you must do the following: replace your call to wp_list_bookmarks() ** with mylinkorder_list_bookmarks().”
I wasn’t sure if I used widgets – yeah, it’s been that long since I messed with my code and theme – except to replace it twice in recent months.
First I went under Plug-Ins and then I went to Widgets. Yes, that means I didn’t think I was using Widgets; that and My Link Order was found under “Plugin Directory” of WordPress.org. Then I hit “Editor” under Appearance to get to the Edit Themes / code chapter of this story.
By the time I got to the code, I copied it into TextPad (its equivalent, anyway) and found the “bookmarks” part mentioned above:
<h3><?php _e(‘Links’, ‘zbench’); ?></h3>
<ul><?php wp_list_bookmarks(‘title_li=&categorize=0&orderby=id’); ?>
So, yes, I had worked out that it was part of the sidebar.php file and that what was already in the parentheses ** should stay in the parentheses. So, I changed out wp_list_bookmarks … and nothing happened. Nothing happened.
Pygmies. And frak.
I went to Links where I now had My Link Order in the menu. That allowed me to physical move the links in alphabetical order (Or any order I wanted.) There should’ve been an Alphabetical Order button I could just click because that has to be the most common use for this plug-in.
Nothing happened. Frakking Pygmies.
I stepped away for a few minutes. … and went back to the WordPress page for the My Link Order plug-in. There are several tabs, I noticed and it defaults on Description. And the next was Installation. And it had something different inside the parentheses. So I left the wp_list_bookmarks code there and added the something different.
So the new code is:
<h3><?php _e(‘Links’, ‘zbench’); ?></h3><ul>
<?php wp_list_bookmarks(‘orderby=order&category_orderby=order’); ?>
And that works. I’m not even sure I need the plug-in at this point, but don’t want to mess with it. On that front, anyway.
And along the way, I reduced the size of the biggest word in my Tag Word Cloud from 18 to 15.
Now I’m going to work on lessening or removing the Archives – or producing them better than a giant list of months.
UPDATE, about 5 minutes later: So, going back to the sidebar.php page of code I changed “monthly” to “yearly.” That worked. Not ideal because now when I click on the year under Archives it just lists every post, instead of offering another list of months. … Then I moved “Search by Tag” and “Archives” down below my list o’ links.