Question for the WP theme devs in the audience

I mentioned this on twitter, but I wanted to get it out here too…if you use TextMate to do your theme development, would you use a bundle that contains a variety of functions for your functions.php file? I’ve got quite the collection set up that I use regularly, and I am thinking of releasing it for download. Any comments are appreciated, leave them either here, or send me a @reply on twitter.

News, Updates, etc.

Ok, first things first. I’ve upgraded to WordPress 2.7…have you?

For the most part, my plugins still work work without need for an upgrade, with the exception of my CMS plugin. It needs some adjustment to account for the new menu system in 2.7. It’ll still work as intended, it just doesn’t fit in with the rest of the new menu design. Right now I’m not sure when I’ll get a fix pushed out for it, but if you use the plugin, you should get an upgrade notification when I release the upgrade.

And while we’re on the subject of plugins, I’ve almost come to the conclusion that version 4.5 of CTC is the last one that will be released. It does more than I ever intended it to do as it stands, and it works without issue. I’m still going to try to get the tag exclusion feature to work, and that will probably incur a version bump, but as of now I have no timeline on when this might take place.

EDIT (12.16.08): The download links for my plugins are now working again. The download manager I use wasn’t quite ready for WP 2.7, but it has been upgraded, and is now functioning correctly.

New WordPress Theme — News Portal

I finally found a few minutes to put the finishing touches on an open-source theme conversion I’ve been working on for a while. I have posted the theme for download here. Take a look, and let me know what you think.

WordCast Mugshot Contest Swag – Part 1

(Note: edited at 7:32pm to clean up my inadvertent foul language…who decided the “I” key should be next to the “O” key!? 🙂 )

Today I received the first part of the goodies I won by entering the WordCast Mugshot contest. I got a Lijit t-shirt and 3 stickers. Now I’m just waiting on a WordPress t-shirt and coffee mug, and a book.

WordPress Plugins Upgrade Tip

Got a WordPress-powered blog that’s been around a while (since 2.1 or thereabouts)? Is your Admin panel telling you that you have plugins that need to be updated, but when you try, you end up downloading the WordPress Widgets plugin? Fear not, there is a (possibly) easy solution. Check your plugins folder for a “widgets” folder.

I was updating the plugins on my development server this morning when I ran into this issue. The fix was simple; I just moved everything in the widgets folder up to the plugins folder, and like magic, the upgrade notifications went away. So if you’re having this issue, give this tip a shot.

Dynamic Page Graphics in WordPress

Recently, while developing a WordPress theme for a client, I devised a handy trick to use different headline graphics for pages (it should work for posts too) based on the page title. The basis of the trick is to name your headline graphics the same as the pages they are to show up on (ex. about.png for the About page). Once you do this, you simply need to insert the following bits of code into your theme’s page template:

Part 1: Add this to the beginning of your template (just after the line that starts with “<?php get_header(); ?>”):

NOTE: Modified this to actually, you know, WORK! 🙂
If you tried it before, and it didn’t do what you expected, change the code at the top of your template to this new version.

<?php
	global $post;
	
	$title = $post->post_name;
	$title = strtolower($title);
	$titlepic = $title.".png";
?>

For those who don’t read PHP, what this block does is gets the title of the current page, stores it in a variable, converts it to lowercase, and then adds “.png” (changes this if you use gifs or jpgs) to the page title to create the image’s file name.

Part 2: Add this where you want the graphic to appear:

<img src="<?php bloginfo('template_directory'); ?>/images/<?php echo $titlepic ?>" alt="<?php $title ?>" />

This is a standard XHTML image tag. Change the directory to suit your needs, but leave the “<?php echo $titlepic ?>” bit as this is what does the magic. The alt parameter could likewise be changed, but it does need to be there for the XHTML to validate.

So there you have it. A painless method to get dynamic graphics for your blog, based on your page titles.

CTC Updated, Version 4.5 Released!

Just a quick note to let everyone know that I have bumped everyone’s favorite tag cloud plugin for WordPress 2.3+ to version 4.5. What’s new? The biggest change is the addition of an Options page for configuring the plugin when used as a template tag. As always, you can see the full changelog, get the new version, and leave comments from the CTC page.

TextMate WordPress Development Bundle

Just a quick note to release my newest WordPress-related download, a bundle for the excellent OS X text editor TextMate for doing WordPress development. The bundle includes template for common WP theme files, updated snippets for newer versions of WP, and various other time-savers. Head over to the Bundle page to check it out and download it.

Reciprocity WordPress Theme

After switching my hosting and theme earlier this month, I decided to update and release my original blog theme to the general public. Head on over to the Reciprocity WordPress Theme page to take a peek and download the theme.…

After switching my hosting and theme earlier this month, I decided to update and release my original blog theme to the general public. Head on over to the Reciprocity WordPress Theme page to take a peek and download the theme.