Archive for the 'Blogs' Category

WordPress, source code, and smart quotes

Turns out WordPress tries to make your posts look a little better by swapping out all normal quotes with smart quotes. That’s great for typography, but really bad when you’re posting source code like I often do on here. Trying to run pasted code with smart quotes in it will bring PHP down to its [...]

WordPress: Get custom field function

On several WordPress projects I've needed to get the value of a custom field.  Not too difficult using the get_post_meta command, but I wanted a little quicker way.  So I now add this little function to the functions.php file on themes I'm working on. PLAIN TEXT PHP: function getMeta($key) { global $post; return get_post_meta($post->ID, $key); [...]

WordPress 2.6 Available

That was a really quick turnaround from 2.5 to 2.6. I seems like I just got all of my WordPress sites updated to 2.5.1 and last night I logged in and saw a message that WordPress 2.6 was ready for download. Looks like I've found a project for today. But since we're here anyway, here's [...]

How to install WordPress 2.5.1

WordPress is a insanely popular blogging platform, and with every release it gets better. It's also very easy to install, even for those who have never installed a CMS on their server before. The first step is to head over to WordPress.org and download the WordPress file. Click on the Download button on the top [...]

Turning off nofollow for blog comments

We're going for a little experiment and going to turn off the rel=nofollow setting for comments. Well, for some comments. I found a WordPress plugin called Link Love that turns off the nofollow setting on links after the commenter has posted 10 comments. 10 seems like too many so I dropped the setting to 5.