Happy New Year!

Happy New Year!

Wishing you a very happy new year!

Download the wallpaper

Wordpress Theme: Didactic

Didactic Template Screenshot

Sreejith R. of GFXedit was nice enough to port my Didactic template over to Wordpress. Thanks Sreejith! Go take a look!

Captionated: Or Why 456 Berea Street is Bad For Your Health

Using JavaScript to add captions to all or some of your images. The JavaScript is unobstrusive so that you miss nothing other than the caption if the user's browser has JavaScript turned off.

Continue reading "Captionated: Or Why 456 Berea Street is Bad For Your Health"

Commercial Template: Six-Oh-Six

Commercial Template Six Oh Six Screenshot

Here it is! My first commercial template! :-) It costs $50.00. Until I can get PayPal working with my template, e-mail me if you want the template. :-)

One Penny Wordpress Theme

One Penny Wordpress Theme Preview

ThemePorter contacted me recently regarding porting my templates over to Wordpress. OnePenny is now available. :-)

Whew!

After a marathon coding session, I finally have the new design online. I'm rather pleased with the design at the moment, and, hopefully, I'll remain just as pleased with in the coming months. You might have noticed ( if you didn't, notice it now ) the urls. I managed to get rid of the index.php in an extremely hackish way, but then, I tend to be anal-retentive about these kind of things. Also, the urls don't include subdomains anymore. While it seemed like a good idea back when it started, it started grating on my nerves the last couple of days. Undoubtedly, this is going to cause broken links and what-not, but hopefully everything will be back to normal in a couple of weeks.

There are a couple of things left to do still — namely, the contact form and the search results page...

One Penny

One Penny Template Screenshot

Feel free to do whatever you want with it as long as it doesn't involve making money off of it. As always, a mention and a link though not required is appreciated very much.

A Wordpress theme based on this template is forthcoming. So stay tuned.

[ View the template ]

[ Download the template files ]

Listing Top Categories in Wordpress

For my footer, I wanted to list the top ten categories (as calculated by the number of posts in each category). Bizarrely enough, there isn't an easy built-in way to do this with Wordpress. What's more surprising is that I couldn't find a plugin that provided this functionality, either. Maybe I'm the only person with this requirement. At any rate, this is how I solved the issue:

  1. <?php
  2.  
  3. $top_cats = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY category_count DESC LIMIT 10");
  4.  
  5. foreach($top_cats as $cat)
  6. {
  7. $cat_link = '<a href="index.php"' . $cat->category_nicename . '">';
  8. $cat_li = "<li>$cat_link $cat->cat_name</a></li> ";
  9. echo($cat_li);
  10. }
  11.  
  12. ?>

1 of 2 pages  1 2 >

On the Side