Instructions: Copy/paste this into your functions.php (TODO: convert it to a standalone php file, and make it into a plygin you can activte/deactivate) Create a new menu item of type “custom URL” Make your URL “http://#latestpost:category_name” where “category_name” is the name of the category whose latest post you want to […]
PHP
There’s only a few tag-cloud plugins that still work – most of them have stopped being supported. The best one I found has super-awesome-multi-colour mode. But by default it’s disabled, and the config-options don’t include a way to turn it on. You have to dig in the developer documentation to […]
My blog posts are info-rich and spam-poor. Most of the “enter your email address” plugins are designed for spam – covered in bling, in-your-face animations, background music, all sorts of crap. There’s nothing out there, so I made one, using a GPL’d existing project. Feel free to use this yourself. […]
UPDATE: So … it seems Suffusion has (buried deep inside the config) a way of displaying category pages with a higher-level workaround to the WP “missing feature”. Although so far I can’t find a way to set the settings on individual pages (which is what you generally need). So, I’ll […]
(aka “why do my include/require/include_once/require_once files not work / seem NOT to be included, even though they are?”) PHP has a mechanism for including files inside each other. The architects of PHP didn’t really think much about what they were doing with a lot of the core language features (witness […]
I’m just finishing up a quick PHP project at the moment, which allows anyone to register an account – so as the final step before launching it, I needed to add some form of CAPTCHA system. I tried a couple of 3rd party ones and source code ones and none […]
Sadly, the code snippets on MySQL’s main website for PHP are mostly untested and buggy (try running them – half of them don’t execute because of silly mistakes). After much trial and error, here’s one that *actually works*: // Missing feature (?) from MySQL: find the list of valid ENUM […]