• The Wordpress docs page has a nice list of all the Wordpress conditional tags, which is very helpful when designing or customizing a theme. 2/3/07 (0)
  • PHP.net has a very handy reference page for customizing how you want your local time or date to be formated. 1/28/07 (0)
  • < !--[if IE]> code insert

    May 8th, 2006 at 8:21AM EDT or 2 years, 6 months ago (the early morning)
    Browse Happy warning to IE users

    Here’s a little tip to give IE users a warning that they’re using a outdated browser and that they should switch to a better browser. I’ve had this on RV2 [blog] for a while and figured that it’d be helpful tip for benefitting the internet world. :P

    <!--[if IE]>[html code of what you want to be displayed to an IE user]<![endif]-->

    The code in between the <!--[if IE]> and <![endif]--> tags only is rendered on IE browsers, so only IE users will see it. Right now, I have a K2-inspired bar above the blog content urging IE users to check out Browse Happy for an alternative browser.

    Wordpress wp_title() search engine optimization tip

    May 3rd, 2006 at 4:28PM EDT or 2 years, 6 months ago (mid-afternoon)

    By default, Wordpress generates titles using the wp_title() tags. The titles for each post usually end up looking like “BLOG NAME >> POST NAME”. By changing it to “POST NAME at BLOG NAME” you could theoretically boost your search engine rankings for that post because now, rather than the unimportant blog title (at least less important than the post title) being first, the post title is now first.

    1) First, open up the header.php file for your theme (if it’s a custom theme, it’s the file with the title tags at the top).

    2) Find:

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

    (this is how it appears in the default template; it is just the line with the <title></title> tags)

    3) Replace that line with:

    <title><?php wp_title(''); ?><?php if ( is_home() ) { } else { ?> at <?php } ?><?php bloginfo('name'); ?></title>

    That’s the way RV2 [blog] is currently formatted! Note that this does not affect the index page title in anyway, just the post page titles.