Update your WordPress copyright date automatically

Three months into the new year and I’m still coming across several websites that I manage that are still showing a copyright for last year.

DOH!

It’s easy to forget as the calendar rolls over to update all your copyright (or Creative Commons) tags on your websites, so why not automate it?

Simply replace the latest year (i.e. © 2005-2010 Jonathan D. Blundell) with this simple code:

<?php echo date('Y'); ?>

So you’re resulting copyright line will look like this:

&copy; 2005-<?php echo date('Y'); ?> Jonathan D. Blundell

And every year, your copyright statement will update with the current year.

Easy peasy!

Now I just need to go update this in all my footers… DOH!

Social media hacks for your website

Getting on a little bit of a technology bent lately…

There are tons of plugins you can get for your website or blog that allow your readers to share your posts on a number of social network sites. But my experience has been that often those plugins can cause havoc on your servers for one reason or another – or bog your site down in general.

But there are alternatives to using plugins — and these will work for WordPress site, or anywhere on any site that utilizes PHP.
Continue reading Social media hacks for your website

Monday Briefs

briefs1

highlight(s) of the week ::
While I’m not sure it was a “highlight” of the week, death came as a friend on Tuesday morning for my Granddad. As a result I did get to spend some good time with family, including hanging out with my cousins on Thursday night and my sister and her husband Friday night. The circumstances surrounding us weren’t exactly what we would have chosen, but it’s always nice to get a chance to spend time with family.

Also, received a random (late) birthday gift from some co-workers. Not at all expected, but a very nice gift from some folks I have worked with recently on the African American Read-In.

quote i’m digging ::
“Going to church… I was very young kid… and this was a high Anglican church and this was my first encounter with God’s house. It was very strange. It was a mystical, peculiar almost magical experience going into this beautiful church and wondering why God had such strange taste in music….” on this week’s (upcoming) podcast

music i’m digging ::
I downloaded a copy of So Elated’s album last week in preparation for an interview on Friday with Ben Thomas. Really enjoying the album, especially the song “Open My Heart with Knives.”

God of love please give me peace / Please destroy all of our enemies / Help the rest of the world to learn to live like me / Tear down the temples that worship differently / Hold my hand and make me yours / Grant me power, sex, money and a brand new car / I know I shouldn’t worship all of my stuff / So I’ll ask that you’d please do it in the name of love

work update ::
The position I applied for with DCCCD is still progressing forward. I have an interview today at 1:30 p.m. so I guess I did OK on last week’s test.

freelance work ::
Learning more and more PHP and how it can be used in web development. Did some back-end work on a couple sites over the weekend to make my job in easier in the future.

gym/weight update ::
I think Laurie and I have decided we may try a 20 mile bike ride in Dallas on the first weekend of April. We rode 15 miles last week from Red Oak to Waxahachie. Not too bad, except the chip-and-seal farm-to-market road was a bit bumpy. And I think we both decided we need new seats before we try any serious rides.

looking forward to ::
Hmmm… not sure at this point. Would like another day off without other things coming up, but I’m pretty content as is.