Category: Wordpress

  • A Minor Announcement

    I’ve decided to turn my current design into a distributable theme for WordPress. It’ll be available over the weekend after I clean up some of the rough edges. Here are some of the things you can look forward to in the release of Effercio Blue 1.0:

    • Support for WordPress Tags (a new feature in WordPress 2.3)
    • Support for Dynamic Sidebar and Widgets
    • Custom Link and Archive Page Styles
    • and more?

    If there’s interest in it, I might make some colored variations of it… Leave a comment if you’d like to be notified of it’s release.

  • WordPress 2.3 Beta1

    So, a new developmental version of WordPress was released last night. Being the sucker that I am, I went ahead and upgraded to WordPress 2.3 Beta1, and to my surprise, everything installed without any problems at all.

    I haven’t seen a full list of all that’s been changed in this version, but based on my limited usage of it in the past half hour I can tell you about two of the updates that will make the most impact:

    1. Tags. Posts now support tags without the use of a third-party plugin.
    2. Plugin Version checking. When you’re managing your plugins, you’ll now be able to see if a newer version of it is available (assuming it supports update checking).

    According to the announcement, this version also include “faster JavaScript” and “SEO-friendly URL redirection”.

    All in all, it seems pretty stable so far. So, if you do decide to upgrade, know that it’s not a full release, and you’re bound to run into problems. Make sure you backup any WordPress-related site files and database beforehand. Deactivate all plugins. Then upgrade. Reactivate your plugins one by one checking to make sure none of them break your site…

  • Separating Trackbacks/Pings from Comments in WordPress

    I was trying to figure out the best way to separate trackbacks/pings from the comments here on the site. I’ve seen a number of tutorials out there, but none seemed to do exactly what I wanted. The code is piece-mealed from a couple of places, but this is how I accomplished it here on the site:

    Backup your existing comments.php file associated with your theme! I cannot stress this enough.

    Assuming you’re using the default theme, or some variation thereof, you’re going to want to look for this in your comments.php file:

    [php]

    < ?php if ($comments) : ?>
    [/php]

    You’re basically going to replace the logic on comments.php from where it says < ?php if ($comments) : ?> (Line 20) to < ?php endif; ?> (Line 61) with the logic below.

    Define the number of pings and comments (Source: Sandbox theme):

    [php]
    < ?php /* NUMBERS OF PINGS AND COMMENTS */ $ping_count = $comment_count = 0; foreach ( $comments as $comment ) get_comment_type() == "comment" ? ++$comment_count : ++$ping_count; ?>
    [/php]

    Then check to see whether comment_status is set to 'open'. If it is 'open', we then check to make sure the comment_count isn’t equal to zero. Once these conditions are met, I then display only the comments. Some other conditional logic is included, like checking whether the comment’s being held for moderation:

    [php]
    < ?php if ('open' == $post-> comment_status) : ?>
    < ?php if ( $comment_count ) : ?>
    < ?php if ($comments) : ?>

    Stuff said in regard to this entry:

      < ?php foreach ($comments as $comment) : ?>
      < ?php if (get_comment_type() == "comment"){ ?>

    1. ” alt=”” />

    < ?php comment_author_link() ?> < ?php _e('said'); ?>:

    < ?php comment_text() ?>

    < ?php if ($comment->comment_approved == ‘0’) : ?>

    Your comment is awaiting moderation.

    < ?php endif; ?>

    Posted < ?php comment_date('F j, Y') ?> @
    ‘, ”); ?>

  • < ?php /* Changes every other comment to a different class */ if ('alt' == $oddcomment) $oddcomment = ''; else $oddcomment = 'alt'; ?>
    < ?php } ?>
    < ?php endforeach; /* end for each comment */ ?>

    < ?php else : ?>
    < ?php endif ?>

    < ?php else : ?>

    Hey, there’s no comments on this post!

    How about being the first?

    < ?php endif /* if ( $comment_count ) */ ?>

    < ?php else : // comments are closed ?>

    < ?php /* Comments are closed */ ?>

    Sorry dude, comments are closed on this post. If you had stuff you liked to say about this entry,
    feel free to contact me.

    < ?php endif; /* if ('open' == $post-> comment_status) */ ?>
    [/php]

    Then we do the same thing for trackback/pings:

    [php]
    < ?php if ( pings_open() ) : ?>
    < ?php if ( $ping_count ) : ?>

    Trackback/Ping Stuff:

      < ?php foreach ($comments as $comment) : ?>
      < ?php if (get_comment_type() != "comment") : ?>

    1. < ?php comment_date('F jS, Y') ?> at < ?php comment_time() ?> < ?php edit_comment_link('e',' ‘, ‘‘); ?>
    2. < ?php /* Changes every other comment to a different class */ if ('alt' == $oddcomment) $oddcomment = ''; else $oddcomment = 'alt'; ?>
      < ?php endif; ?>
      < ?php endforeach; /* end for each comment */ ?>

    < ?php else : /* if ( $ping_count ) */ ?>

    < ?php endif /* if ( $ping_count ) */ ?>

    < ?php else : // pings are a no-go bro. ?>

    < ?php /* Pings are a no-go, bro. */ ?>

    Pings are a no-go, bro.

    Maybe next time?

    < ?php endif /* if ( pings_open() ) */ ?>
    [/php]

    Save the changes and you should be good to go.

    Hopefully this is a pretty straightforward implementation… If you have any better ideas, I’d love to hear ’em.

  • WordPress Dreamweaver Extension

    This post is out-of-date. Since it’s release, a new WordPress Extension for Dreamweaver has come out called ThemeDreamer. It does all the things the Tagstention extension did and a lot more. Definitely check it out.

    I’ve been comfortable coding HTML, CSS, etc. in Notepad for years, but I’ve grown to love Dreamweaver ever since I started working at PowerServe. Tonight, I ran across this Dreamweaver extension for WordPress that could make life a little bit easier for anyone who uses the popular blogging platform.

    Tagstention Toolbar for Dreamweaver

    Right now, it appears the the extension is compatible with Dreamweaver 8 and Dreamweaver MX 2004. If you’re using an older version, it’s time to upgrade. Seriously.

    There are several wizards for using tags with additional parameters they might accept. It’ll help with basic loops, inserting templates, supports Ultimate Tag Warrior, etc. It’s probably a safe bet that if you’re using Dreamweaver and using WordPress, it’s worth a try.

  • What the crap?

    If there is one thing I have learned as a WordPress user, it’s that there is certainly a plugin for everyone. Case in point, there’s now a plugin called Ploppy available for fecophiliacs.

    “[Ploppy is] a WordPress plugin for describing the state of your bowel movements using the Bristol Stool Scale“.

    Lovely. I’ll pass, but this is a true testament to the diversity of stuff out there currently available for WordPress.

  • Moving to WordPress

    Well, I’m taking the leap, and moving away from Blogger.com. Hallelujah. WordPress is way more flexible. So far, the installation has gone without any major problems – unless you count the Blogger.com import I’ve been unable to do because cURL isn’t enabled on our server. (Not a big deal.) Other than that, things are peachy. I’ll be working on making this site more of my own over the next couple of weeks.