Archived posts from bajada·net

how to filter post titles

Posted on 01 January 2010 at 4:46 PM | Filed under code

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:

  1. if ( !function_exists( 'ucc_post_title_filter' ) ) :
  2. function
  3. ucc_post_title_filter( $data ) {
  4.   $title = $data['post_title'];
  5.  
  6.   $title = strtolower( $title );
  7.   $data['post_title'] = $title;
  8.  
  9.   return( $data );
  10. }
  11. add_filter( 'wp_insert_post_data' , 'ucc_post_title_filter' );
  12. endif;

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

caffeinated!

Posted on 05 December 2009 at 4:09 PM | Filed under want

I love this messenger bag! Cute in blue! Covet!

lyrical

Posted on 30 November 2009 at 7:51 PM | Filed under live

In the car on the way home from Thanksgiving, with Abigail wailing and Rebecca singing to her and me swiftly succumbing to Madeline's cold.

Rebecca: Mom, do you know any other Christmas carols I can sing to her?
Me: My throat is sore and I have no voice.
Rebecca: I don't know the words to that one.

wheels spinning, spinning wheels

Posted on 04 October 2009 at 6:33 PM | Filed under live

While reviewing Flickr images for a web site banner, Marcus poked his nose over my shoulder.

Marcus: What is all that?
Me: Yarn.
Marcus: That's a lot of yarn.
Me: Yes, it is.
Marcus: So, do they have yarn making machines?
Me: Yes, they're called spinning wheels.
Marcus: Oooooooh.

housekeeping tip #1

Posted on 29 August 2009 at 10:55 AM | Filed under live

Always go to bed with an empty washing machine. That way, when someone throws up or wets the bed in the wee hours of the morning, you can just toss all the laundry in and start the wash cycle immediately.

it's not easy being green

Posted on 24 August 2009 at 11:57 AM | Filed under blog

The cloth diapering world was recently hit with the scandal that the "organic bamboo velour" (and fleece, and terry, and jersey) that has been touted to hell and back as being eco-friendly, naturally anti-microbial and anti-fungal, and an all-around miracle fabric is, in fact, rayon. Oops.

Continue reading "it's not easy being green" ►

have tent, will travel

Posted on 19 August 2009 at 6:05 PM | Filed under live

Last week, Matthew loaded up the truck and the whole family went camping in northeastern PA. One of his online forum friends owns a mountain; we spent Thursday through Sunday living on it.

Continue reading "have tent, will travel" ►

05 august 2009

Posted on 06 August 2009 at 10:57 PM | Filed under live

Yesterday…

  • L. and I met up at House of Bounce for their morning bounce session. Abigail managed to spit up all over my shirt in spite of careful handling. Marcus sprained his wrist. Madeline refused to leave. Good times!
  • I made an awesome hot crab dip and crostini to bring over to my weekly girls'-night-in with L.
  • Abigail woke up from a nap and her mosquito bite was well on its way to being infected, so we took her to Emergicare. Antibiotics for the next week, etc. (As I write this, it already looks much better.)

hot crab dip and crostini

Posted on 06 August 2009 at 10:56 PM | Filed under cook

This hot crab dip definitely hails back to my Louisiana upbringing -- it would be equally delicious using crawfish tails instead of the crab.

Continue reading "hot crab dip and crostini" ►

madeline

Posted on 06 August 2009 at 8:51 PM | Filed under live

Me: Madeline, you're tired.
Madeline: No, I'm not, I'm Madeline!

Copyright © 2003-2010 J.M. Dodd. | XHTML 1.0 Strict | CSS | RSS | 508