Category: Tools

wordpress-tools

Using Google Code libraries with WordPress

By default, WordPress loads the version of jQuery that comes with the package. But there is an alternative way of doing it and that’s to use the AJAX Libraries API at Google Code – use their bandwidth, why not… A few lines added to your functions.php in the theme you’re building and you’re ready to [...]

Fatal Error – Cannot modify header information

You’ve been hacking around in WordPress and you get… Fatal Error – Cannot modify header information – headers already sent … Why? Very simply, because the script has output something (… ie. printed it to your browser) before trying to execute a  PHP header(“…”) statement – which just isn’t allowed with PHP. Often, it’s a [...]

wordpress-themes

WordPress Theme Frameworks

Since the arrival of WordPress 2.7, the true framework is based on the concept of parent/child WordPress themes. A child theme is dependent on its parent – here, the framework – for its template files and functions, it’s not going work without it.

JQuery, Cufon and WordPress

Just at the moment the best font replacement technique around is cufón – so how to get this technique into your WordPress theme design?

WordPress, Twitter and URL-shortening

You’re producing a WordPress theme, or plugin, that is related to Twitter and for obvious reasons you want to include url-shortening functionality… How’s it, generally, done? Just the briefest snippet of PHP, this example for is.gd:- function shorten_url($url) { $request = 'http://is.gd/api.php?longurl=' . $url; return @file_get_contents($request); }

WordPress Twitter Integration

Publicity, relationship-building, just plain keeping in touch – Twitter offers it all and the art is to integrate your tweeting into your blogging, if that doesn’t sound too salacious. Here’s a few scattered suggestions on the subject. First up, to begin at the beginning, reply to @’s – I know it’s absolutely bleedin’ obvious, but [...]

More WordPress and jQuery

To refine a previous post on WordPress and jQuery and the use of the wp_enqueue_script function, its paths and dependencies. As a barebones example, this is how we do it when we we’re enqueueing – if that’s a word – the jQuery Cycle plugin, so that we can make a slideshow on the page.

WordPress Database Functions

If you’re going to be a WordPress plugin author, pretty soon you’ll have to get into the area of database operations, manipulating existing data or even adding your own tables – assuming you have a basic knowledge of PHP/MySQL, here’s how the fundamentals work WordPress uses the ezSQL database wrapper – not a high-tech solution [...]

Using jQuery with WordPress

If you’re a theme developer, you’ll (perhaps) be looking at keeping up with the latest in javascript/AJAX and incorporating a few tweaks into your brand new theme – in some ways, it’s been made very easy for you (and in one or two ways it’s just a little tricky…)