Month: January 2010

  • 02 January 2010

    Yesterday…

    * The house heat broke. Then Matthew fixed it. (Because, actually, he broke it in the first place. Minor detail.)
    * I picked up some LED Christmas lights from the hardware store for $2 per string. Madeline and Becca now have colored crystals all over their bunk bed; Marcus used his to decorate the Nerf gun hanging on his wall. (I totally want to go back for more on Monday.)
    * Chinese food did not agree with Abigail at all. More laundry. Lots and lots of laundry.
    * I made guacamole. Mmm, guacamole.

  • 01 January 2010

    Yesterday…

    * I converted most of from [Textile](http://textile.thresholdstate.com/) to [Markdown](http://daringfireball.net/projects/markdown/). Certain behaviors in Textile were giving me conniptions, like enclosing perfectly fine `

    `s with `

    `s just for the heck of it. I was in the midst of recoding shortcodes as filters to avoid this behavior when I threw in the towel. (Yes, I know about `notextile..`. No, it was not sufficient.)
    * I made [link slug=”mongolian-beef”] for dinner. Zakk came over, we remarked on how _Kenny vs. Spenny_ has totally jumped the shark.
    * I resolved some issues with my tab shortcode. It just needs some JavaScript tweaking and for me to sort out how to do nice `id`s.
    * Madeline and I watched [Alma](http://vimeo.com/4749536) together. Sweet and horrifying at the same time.

  • How to filter post titles

    If you know that you will want to apply a filter to all of your post titles in WordPress, such as forcing uppercase, lowercase, or title capitalization, you can use a filter to do so. The filter below will force a title to lowercase as the post is saved:

    [code lang=”php”]
    if ( !function_exists( ‘ucc_post_title_filter’ ) ) :
    function ucc_post_title_filter( $data ) {
    $title = $data[‘post_title’];

    $title = strtolower( $title );
    $data[‘post_title’] = $title;

    return( $data );
    }
    add_filter( ‘wp_insert_post_data’ , ‘ucc_post_title_filter’ );
    endif;
    [/code]

    On line 5, strtolower() can be exchanged for any text-transforming function.

  • Web Developer’s Handbook

    Web Developer’s Handbook

    Resource for web site developers with information on CSS, design, HTML, accessibility, and related topics.