So, it has been quite a while since I posted on my own website. In the past 2 years, there have been what 2 posts? I’ve barely even looked at it just dropping in long enough to clear out some spam comments or deal with someone who thinks this is the perfect platform to be hateful on. Where have I been? Well, I’m in the process of moving all of my WordPress Plugins and content over to my business website at AaHa Creative and I’ve started a web development blog there.
I’m moving all my business and work related content there and will be actually taking posts down off this site and reposting things there. I’ve also made new pages for and updated many of my wordpress plugins there.
From now on, business and programming related content will go there, and when I am ready to start posting on literature, history, philosophy and related topics again, the new content will be posted here.
New and shiny WordPress.org for a new and shiny version of WordPress.
This website is officially not running beta software now, so yay!
[geek]I upgraded after it was released for only 10 – 30 minutes. That has to be a record.[/geek]
Wordpress Dashboard Editor
Of the entire website the Dashboard is seen by administrators the most, but it is the hardest part of Wordpress to customize. Well not anymore. This plugin allows you to add whatever you want to the Dashboard through PHP and HTML and allows you to even add Sidebar Widgets. You may also wipe the entire dashboard or individually remove some of the more irritating sections like the Dev news, Planet Wordpress and the getting started section.
In WordPress 2.5, the code is cleaner, the plugin is more responsive and you can add both “real” sidebar widgets, or add “fake” ones to match the dashboard.
This plugin is currently intended for 2.5, but it also works in Wordpress 2.1 – 2.3 and can work in Wordpress 2.0.x if you use the Completely Wipe Dashboard option.
There are still some issues, but for the most part, everything seems pretty good.
- The automatic upgrading is nice, but it still has a couple kinks in it: it says one or two plugins are at the latest version even though it says they aren’t, it died when upgrading wp-phpmyadmin but not until it deleted it, and it upgraded me to a bum copy of Redirection which wasted two hours of time while I thought that AWP was broken.
- I still think the Admin panel is way too washed out. If it stays this way, one of my first tasks will be to release an Admin theme. I think everything has a cartoony feel to it, and it is way too bright. (As well as difficult to see.)
For some odd reason the Gravatars aren’t working even though they were on the test install.There is a reason you should allow at least 24 hours between hitting the save button and hitting the publishing. I just forgot to echo it.- Love the new media library. It alone will be worth the upgrade for some people. It auto generates galleries, and makes uploading and editing several pictures extremely easy.
Check out the gallery of screenshots below the fold.
Custom Category Templates on a Archive or Index page.
On my home page and in my archives, I use a custom category template to display asides and news articles. This is very easy to do and it only takes a couple seconds of work to create custom category templates in any WordPress theme.
The first step is to add the following to your current theme’s index.php loop after the line that looks like <?php while (have_posts()) : the_post(); ?>, but before any other code.
<?php $cat_temp = cat_loop();?><?php if($cat_temp && is_numeric($cat_temp)){?><?php include('loops/cat_'.$cat_temp.'.php');?><?php }else{ ?>
Then add } just before the line endwhile.
The next step is to add the following to your theme’s functions.php file (you may have to create a file with the same name):
function cat_loop(){global $blog_id,$post, $wp_version;if($wp_version >= 2.3){global $object_term_cache;$array = $object_term_cache[$blog_id][$post->ID]['category'];}else{global $category_cache;$array = $category_cache[$blog_id][$post->ID];}while (list($cat) = each($array)) {if(file_exists(dirname(__FILE__).'/loops/cat_'.$cat.'.php')){return $cat;}}}- Use the following to copy and paste the code.
This can be modified to look at author’s also.
One of my readers recently asked how I created my horizontal menu bar: the short answer is by mixing CSS and Javascript.
The first step is to get WordPress to display the menu as a hierarchical list without a title. <?php wp_list_categories('sort_column=name&sort_order=asc&style=list&children=true&hierarchical=true&title_li=0'); ?>
We then wrap this WordPress code in the following so we can style it.
<div style="text-align:center;"><ul id="menu" style="padding:0; margin:0;"><?php wp_list_categories('sort_column=name&sort_order=asc&style=list&children=true&hierarchical=true&title_li=0'); ?></ul></div>
I added this to my header.php, but you can add it anywhere you want it to appear.
The CSS is fairly simple and you just need to add it to your theme’s style.css file.
ul#menu {margin: 0;padding: 0;list-style: none;width: 100%;font-size:1.2em;}ul#menu li {float: left;padding: 0;margin: 0;border-right:solid 1px #fff;}ul#menu ul li {float: none;position: relative;border-bottom: 1px solid #7EAED7; /* fixes gap problem in IE */border-left: 1px solid #FFF;z-index:1000;}ul#menu li ul {margin: 0;padding: 0;display:none;list-style: none;position: absolute;background: #9CC;}ul#menu ul ul{margin-left: .2em;position: absolute;top: 0; /* if using borders, -1px to align top borders */left: 100%;}ul#menu * a:hover, ul#menu li a:active{background:#7EAED7 !important;color: #FFFFFF;}ul#menu li a:link,ul#menu li a:visited,ul#menu li a:hover,ul#menu li a:active{display: block;padding: .2em .3em;text-decoration: none;background: #5587B3;color: #FFFFFF;}ul#menu ul li a:link,ul#menu ul li a:visited,ul#menu ul li a:hover,ul#menu ul li a:active {width: 8em;}- Use the following to copy and paste the code.
Of course you will need to change the colors and text sizes to ensure it blends with the rest of the theme.

