GenKeep is a plugin which allows WordPress to keep track of your birthday. You can display your current age, your birthday, and lots of other age related things. This work is licensed under a Creative Commons Public Domain License. Just download it already! Or, are you having trouble? I can help!
Need a custom plugin or theme? Contact me to work something out.
Join the 727 people who have downloaded GenKeep.
Like this plugin?
Features
- All output is configurable to include years, weeks, or days - perfect for your newborn’s blog.
- Allows embedding of your current age in WordPress content
- Allows embedding of your next birthday in WordPress content
- Allows embedding of your birthdate in WordPress content
- Provides various functions for use in templates
Changelog
1.0
- Initial public release.
1.1
- Made PHP 4 compatible.
2.0
- Added configurable age format.
Implementation
[y]- Returns the number of years.
[w]- Returns the number of weeks (minus the number of years, if it is in your string).
[d]- Returns the number of days (minus the number of weeks and years, if they are in your string).
<!--myage-->- Embeds your current age in WordPress content
<!--mybirthdate-->- Embeds your birthdate in WordPress content
<!--mybirthday-->- Embeds your next birthday in WordPress content
<?php echo ae_get_age() ?>- Returns your current age, in years
<?php echo ae_get_birthdate() ?>- Returns your birthdate. Paramaters:
$format- Whether to format as a date. Defaults to Unix timestamp.
<?php echo ae_get_birthday() ?>- Returns your next birthday. On your bithday, returns false. Paramaters:
$format- Whether to format as a date. Defaults to Unix timestamp.
<?php echo ae_till_birthday() ?>- Returns the number of days until your next birthday

It’s a great plugin, too bad it doesn’t seem compatible with WordPress 2.1:
Fatal error: Call to undefined function: str_ireplace() in /home/nathan/nathanr.ca/wp-content/plugins/ae_genkeep/ae_genkeep.php on line 84
Sadly, I had to uninstall it.
That is most unfortunate (and stupid of me). The problem is not WordPress 2.1 since I am running WP 2.1. However, your version of PHP might pose a problem, I think. What version of PHP are you running?
I will try to fix the issue this afternoon and release a bugfix. If you can test, that would be great.
Alright, I have fixed the issue so it should now work with PHP 4 and 5.
This is a non-issue now but I figured I’d answer your question:
nathan@xorn:~$ php -v
PHP 4.4.4 (cli) (built: Nov 15 2006 19:17:45)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
Hi. This plugin is sooo close to what I was hoping to find. I have a newborn son and I was hoping my family could keep track of his age in weeks since it seems that they each call all the time and want to know how old he is now. Is there a way to mod the script to show his age in weeks, months, or even days? Since he’s only a month old (well actually 1 month, 6 days), and currently the script returns that his age is 0. I can’t find any other plug in that’s even remotely close. Anything you can do is greatly appreciated! Thanks.
-Rob
I hope to roll out a new version of GenKeep soon. It will include customized formatting (by decades, years, months, weeks, days, hours…) which should work great for you, Rob.
Sorry that I didn’t respond sooner but I’ve been on Cape Cod.
Thanks Arthus. Any way to get an update when the new version is ready?
-Rob
I have released version 2.0 which allows for configurable age formatting. This should fix your issue, Rob.
Thanks so much for the update Arthus. It’s working beautifully. This update is brilliant for those of us with newborn children looking to keep our families updated. Absolutely worth the donation.
Glad it worked well. Thanks for the donation, it is much appreciated. Good luck with your son.
Very nice plugin! I’ve had it installed since your initial release.
I noticed though after downloading from the above link that the version number still displays as 1.1 rather than 2.0. Is this just from forgetting to update the version in the file?
Thanks again!
Brad
@Brad: I’m glad you like my plugin. I hope all the features are adequate for your needs.
As for the mistaken version error, that was just from forgetfullness on my part. I did indeed forget to update the version in the file. Fixed now.