Oh, as an Aside: WordPress 2.5 is out, and WordPress.org is dressed to match. (From the 29th of March)

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.

Continue reading. »

Oh, as an Aside: I’m running Wordpress 2.5, and so far so good. (From the 15th of March)

There are still some issues, but for the most part, everything seems pretty good.

  1. 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.
  2. 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.)
  3. 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.
  4. 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.

Continue reading. »

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.

  1. <?php $cat_temp = cat_loop();?>
  2. <?php if($cat_temp && is_numeric($cat_temp)){?>
  3. <?php include('loops/cat_'.$cat_temp.'.php');?>
  4. <?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):

  1. function cat_loop(){
  2. global $blog_id,$post, $wp_version;
  3. if($wp_version >= 2.3){
  4. global $object_term_cache;
  5. $array = $object_term_cache[$blog_id][$post->ID]['category'];
  6. }else{
  7. global $category_cache;
  8. $array = $category_cache[$blog_id][$post->ID];
  9. }
  10. while (list($cat) = each($array)) {
  11. if(file_exists(dirname(__FILE__).'/loops/cat_'.$cat.'.php')){
  12. return $cat;
  13. }
  14. }
  15. }
  16. Use the following to copy and paste the code.

This can be modified to look at author’s also.

Continue reading. »

Oh, as an Aside: Displaying WordPress categories in a horizontal dropdown menu. (From the 16th of January)

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.

  1. <div style="text-align:center;">
  2. <ul id="menu" style="padding:0; margin:0;">
  3. <?php wp_list_categories('sort_column=name&sort_order=asc&style=list&children=true&hierarchical=true&title_li=0'); ?>
  4. </ul>
  5. </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.

  1. ul#menu {
  2. margin: 0;
  3. padding: 0;
  4. list-style: none;
  5. width: 100%;
  6. font-size:1.2em;
  7. }
  8. ul#menu li {
  9. float: left;
  10. padding: 0;
  11. margin: 0;
  12. border-right:solid 1px #fff;
  13. }
  14. ul#menu ul li {
  15. float: none;
  16. position: relative;
  17. border-bottom: 1px solid #7EAED7; /* fixes gap problem in IE */
  18. border-left: 1px solid #FFF;
  19. z-index:1000;
  20. }
  21. ul#menu li ul {
  22. margin: 0;
  23. padding: 0;
  24. display:none;
  25. list-style: none;
  26. position: absolute;
  27. background: #9CC;
  28. }
  29. ul#menu ul ul{
  30. margin-left: .2em;
  31. position: absolute;
  32. top: 0; /* if using borders, -1px to align top borders */
  33. left: 100%;
  34. }
  35. ul#menu * a:hover, ul#menu li a:active{
  36. background:#7EAED7 !important;
  37. color: #FFFFFF;
  38. }
  39. ul#menu li a:link,
  40. ul#menu li a:visited,
  41. ul#menu li a:hover,
  42. ul#menu li a:active{
  43. display: block;
  44. padding: .2em .3em;
  45. text-decoration: none;
  46. background: #5587B3;
  47. color: #FFFFFF;
  48. }
  49. ul#menu ul li a:link,
  50. ul#menu ul li a:visited,
  51. ul#menu ul li a:hover,
  52. ul#menu ul li a:active {
  53. width: 8em;
  54. }
  55. 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.

Continue reading. »

Oh, as an Aside: Tag Management for Wordpress 2.3 (From the 22nd of October)

Now that you have gotten used to WP 2.3 and had time to fiddle around with all those tags, you are probably finding that you need to edit, rename or delete tags. While I was going to write my own Plugins for this for a while, I found the perfect Plugins to do the work for me — and by perfect I mean really good, so I take no responsibility if they eat your dog.

The Simple Tags has been around for a long time, but now it works perfectly with Wordpress tagging. What does it do? Most everything you could want (I could retype the list, but I’m going to borrow it straight from the Simple Tags website):

  • type-ahead input tags
  • auto suggestion of tags
  • tags management (rename, delete, amalgamate, search and add tags, edit tags ID)
  • List of non tagged contents
  • Edit mass tags
  • Possibility to tag pages (not only posts) and include them inside the tags results
  • Related content since common tags
  • Possibility to add related posts inside RSS
  • Dynamic Tag Clouds with colors with Widgets
  • Tags inside your header’s blog
  • Embedded tags ([tags]tag1, tag2[/tags]) for retro compatibility

I use a lot of Plugins and write a lot of Plugins, so the fact that I even use one usually means it is really well made or very useful, but this one is one of the very few that I thought was good enough to promote.

Continue reading. »