Entries tagged with "guide"

Shortlink support in WordPress 3

A plugin I made a long time ago for WordPress 2.x created short URLs for posts and stored them as a custom field for later use. This meant posts would get an automatic tinyurl (or similar address) for visitors to use. It always annoyed me however that this wasn’t built into the WordPress core. Not the generation of short URLs themselves, but that there was no standardised way to retrieve them from themes meaning each one had to be customised. Well I was pleasantly surprised to find that as of WordPress 3 there is now a set of functions for handling short URLs and they are even displayed within the admin area! Continue reading »

Using WordPress as an Admin for non-WordPress data

Okay, this one kind of surprised me. Apparently, the vast majority of developers never realised just how easy it is to use the WordPress admin to administer data that is held in non-WordPress tables. For example, I store all of my Xbox friends and games in a bunch of tables that live next to the default WordPress ones (such as wp_posts etc). Within the WordPress admin I then have additional menu tabs to add, edit and delete all of these. And by using WordPress you get a lot of stuff for free. Continue reading »

From Kohana to WordPress, a Plugins Story Part I

The last version of this website, currently still up at HybridLogic as of writing, was built on top of the Kohana framework. Unfortunately what you make up for in power you lose in the ability to just get stuff done. Seriously, don’t underestimate the power of having a blog ready to post in. Anyway, getting back on track, I decided to move over some of my Kohana-specific libraries to WordPress today. This is the tale of what happened. Continue reading »

Setting up PHP-FPM and Nginx on Linode

Nginx is designed for very efficient serving of static files. This means that trying to use a dynamic scripting language such as PHP requires a bit of extra work compared to say an Apache installation. This post documents how I’ve set up my Linode with Nginx and PHP using the PHP-FPM extension. Continue reading »