Upgraded to WordPress 3

Posted: July 15th, 2010 | Author: | Filed under: Software
Tags: , ,

That went pretty smoothly.

I did a manual upgrade by putting a temporary index.html in the WP root and renaming the existing index.php, deleting everything except wp-content, then uploading the new WP3 files. No issues with old plugins from a year ago, or with some of the PHP that the theme uses.

Last Modified: March 4th, 2011

No Comments »

Disable WordPress’s Visual Editor On Specific Posts

Posted: July 11th, 2010 | Author: | Filed under: Tips/Tutorials
Tags: , , , ,

Simple and quick tip for WordPress. You might run into this if you have code snippets or other things in the HTML view that get malformed once you enter the visual view of the editor.

This WP plugin covers the basic functionality. The minor issue is that you have to open the post’s edit view to input the custom field, instead of having a button in the list of posts section of the admin area. Maybe there is a plugin for editing custom fields ajax-style, or a richer version of this visual/html toggle that I may have missed.

Last Modified: March 4th, 2011


Opening WordPress Comment Author URLs In A New Window

Posted: June 10th, 2010 | Author: | Filed under: Tips/Tutorials
Tags: , , ,

Here’s a short tip on how to add target=”_blank” to the HTML code generated by WordPress’s comment_author_link(). I can’t seem to get it to work as a filter inside comments.php, but I found a forum post that does what’s needed as a WP plugin. Apparently it needs WP2.5 and up. The simplest way would be modifying the core WP files, but that’s a bad idea due to any updates overwriting your changes, making you do them over again.

Plugin Name: Edit Comment Author
Version: 0.1
Description: Automatically adds target="_blank" to comment author links
Author: Jay Gilford
Author URI: http://www.jaygilford.com/
Plugin URI: http://www.jaygilford.com/
global $wp_version;
$exit_message = 'This plugin requires Wordpress 2.5 or newer. <a href="http://codex.wordpress.org/Upgrading_WordPress">Please Update!</a>';
if(version_compare($wp_version, '2.5', '<')) {
add_filter('get_comment_author_link', 'comment_author_link_edit');
function comment_author_link_edit($content) {
    $content = str_replace('<a ', '<a target="_blank"', $content);
    return $content;


Save it as a PHP file, then upload to your WP plugins directory and enable the ‘Edit Comment Author’ plugin.

Last Modified: June 10th, 2010