Miklb's Mindless Ramblings

chronicling life in a digital world

Sums Up My Feelings Quite Well

bush_stepsbush_stepsHmm, title says it all. Might as well be a copy of the Constitution on there too. I’ve avoided blogging anything about 9.11, as so much is out there, from the issues with the ABC docudrama, the politicization of the anniversary (for instance, Bush laying the wreath at the site of the WTC, with only Republican representatives with him), etc, etc, etc. I simply wish that at some point, those that differ on domestic issues, can rationally approach our global issues on a united front, and sanely resolve the conflicts that effect our security, both home and abroad. I’d also like to see the powers that be see that the continued death and injury that befalls our military overseas is not a price worth continuing to pay, and find diplomatic solutions to resolve the civil war in Iraq.

Category Archives Plugin

(disclaimer)I’m not a coder, and this is my first attempt, I apologize if this isn’t properly documented or presented.

My very first WordPress Plugin! I’ve dabbled with a lot of areas of WP, but until this post in the support forums, I never really had an idea or need to write one. But after doing some reading, I found that there wasn’t a simple way to accomplish this task. All of WP’s archive features are based on date.

So with the help of alphaoide via #wordpress on IRC, I put together this simple plugin to accomplish the task. It worked fine on my test site, but may need some TLC before being good to go. Basically it outputs categories by name in an h2 tag, then lists post titles with a permalink to the post.

I tested this by creating a Page Template, then inserting the plugin code within the content div of the theme.
The code to insert is
< ?php mb_cat_archive(); ?>
(remove the space between the and ?, I’m not sure why that is getting reformatted in the post)
I suppose this could be used in a sidebar, however it may create a very long list…
So to summarize, download the file, unzip, and upload to your wp-content/plugins directory.
Activate the plugin in the dashboard. Create the page template, inserting the above code, save, and upload to your themes directory.
Go to Write->Page, and choose the template you uploaded.
The new page should now list your categories with their appropriate posts.
I haven’t looked into how it handles posts with multiple categories, that will be on my todo list, I’m sure, if the plugin proves useful or popular. I’d also like to add some AJAX to hide the posts until you click on the category (that would make it much more sidebar friendly), and the ability to change the h2 tag to whatever one likes.

You can download the file via:
http://www.miklb.com/blog/cat_archive.zip

Great Political Prank

VANITY FAIR
What a great idea from a main stream media source. Vanity Fair has a fake cover for The Weekly Standard which dogs the current efforts in Iraq. Simply detach the fake cover from the Vanity Fair, and fold it over a copy on the newsstand, sit back, and watch the shock of the next neocon that approaches the newsstand. Brilliant!

» Silver Mac

» Silver Mac a great Mac tips site, with several recent tips I didn’t know about. I really like the recent tip on using a dashboard widget on the desktop. As much as I like the idea of widgets, I rarely use them as it requires a few keystrokes. Perhaps if I learn how to use Quicksilver with them…

Miklb's Last.fm profile