What, who, where am I?!?
Craig Lotter is a web developer based in Gordon's Bay, South Africa, who seems completely incapable of shaking off that pesky inner child within, the one that forces him to love all things animated or hand drawn.
The Rugged Rock of Craig contains snippets of his life, popular culture and all the important things like anime, manga, games and comic books. The CodeUnit of Craig on the other hand contains the more serious stuff like code snippets and tutorials, while the House of C chronicles his foray into the world of web comics.
For which it never seems he has enough time anyway.
CodeUnit Post Archive
Rugged Rock Studio
Author Archives: Craig Lotter
WordPress PHP: Get the Month and Year of the Newest Post on Your Blog

To retrieve the month and day of the newest post on your blog via PHP (which you could of course include in a function) is relatively simple – in essence all that you are doing is putting in a call … Continue reading
Posted in PHP, Wordpress
Tagged date, month, newest, newest month, newest year, PHP, wordpress, year
Leave a comment
Ubuntu: Simple Folder Backups with Grsync
Making backups of important folders should become a routine for everyone, simple as that. Back up to another internal drive, back up to a flash disk, back up to an external drive, or back up to an remote source, it … Continue reading
WordPress PHP: How to add URL Querystring Parameters to Your Plugin

WordPress is set up such that unknown URL GET parameters are ignored, a nice security/navigation feature to be sure, but an annoying one if you are developing a plugin that needs to allow for GET variables in order to control … Continue reading
Posted in PHP, Wordpress
Tagged add_filter, get, parameter, PHP, querystring, query_vars, url, wordpress
Leave a comment
WordPress PHP: Get the Month and Year of the Oldest Post on Your Blog

To retrieve the month and day of the oldest post on your blog via PHP (which you could of course include in a function) is relatively simple – in essence all that you are doing is putting in a call … Continue reading
Posted in PHP, Wordpress
Tagged date, month, oldest, oldest month, oldest year, PHP, wordpress, year
Leave a comment







WordPress: How to Disable Comments on Pages
Some WordPress themes come packed with an option to turn on or off comments on pages. However, a lot don’t, and more often than not, you don’t actually want a long comment list on a page, as that is usually … Continue reading →