Blog
Strip images and other HTML tags from a WordPress post
November 13, 2011
Here’s a really quick snippet for when you’re building a custom post loop in WordPress. It’s really easy to remove the images or any other nasty html that could mess up the theme that you’ve spent hours designing, just put the tags in the functions that you’d like to keep and hey presto you’ve got [...]More on Strip images and other HTML tags from a WordPress post
WordPress mail() On A Windows Server
September 1, 2011
Web design and Development is anything but not exciting, every day is a school day it would seem. Today i discovered that PHP’s mail functionality and in turn the lovely plugin Contact Form 7 don’t work as expected (read: not at all) on a windows server and need a bit of tweaking of the SMTP [...]More on WordPress mail() On A Windows Server
Prevent WordPress Editors From Changing Themes
August 31, 2011
Wonderful little code snippet that prevents the editing of your wordpress theme by administrators. This stops them uploding themes, editing the existing code of your custom theme and also prevents them from adding, removing or editing plugins which is really very useful. just add these 2 lines of code into your wp-config.php file and upload [...]More on Prevent WordPress Editors From Changing Themes
CSS3 PIE Life Saving .htaccess Snippet
August 25, 2011
I like to use CSS3 Pie…. It gives my designs nice rounded corners for my boxes and gives me a lovely little shadow on my text. Unfortunately those nice people at Microsoft deemed these features unessential. I recently ported a site onto a different companies hosting which for some reason didn’t implement my CCS3 Pie [...]More on CSS3 PIE Life Saving .htaccess Snippet
Super Simple Jquery Dropdown Menu For WordPress 3
August 18, 2011
WordPress 3 has a native menu functionality that is really cool and allows WordPress site administrators to easily add and edit menus on their sites. Here’s a really simple way to get a smooth dropdown menu for those indented menu items in your custom menu. View The Demo (view the source of this page to [...]More on Super Simple Jquery Dropdown Menu For WordPress 3
Find And Replace A String In MySQL
August 15, 2011
I’m finding this little snippet of code extremely useful at the minute. A simple way to change a string in a MySQL database. UPDATE table SET field = REPLACE(field,'oldString','newString'); I’ve been using this a lot lately when migrating WordPress installations from host to host and i have to change the url from say http://mydomain.com to [...]More on Find And Replace A String In MySQL
Gzip And Set Expiry Dates Of Files With .htaccess
August 15, 2011
We’ve been using one and one as our web host for a good few years now, we’ve got a couple of older servers which run and host quite a few older sites that were created using PHP 5. You might know that the latest versions of WordPress require at least PHP 5 to be running [...]More on Gzip And Set Expiry Dates Of Files With .htaccess
Order Custom Fields Correctly in WordPress
August 11, 2011
This might be reinventing the wheel but i could not get my custom fields to output in the correct order in WordPress. Custom fields are really powerful and can be used for a tonne of different things in my case I was using it to store product values for an online shop which integrated into [...]More on Order Custom Fields Correctly in WordPress
Integrating Googles Unofficial Weather API
June 16, 2011
Google offer a whole range of API’s for web developers, Google Maps and Google Checkout being just 2 popular options which are well supported and widely implemented. I am currently redeveloping Farmores Hotel and bed and breakfast site Places2stay. the site itself works as an affiliate portal site for Late Rooms, basically, users can search [...]More on Integrating Googles Unofficial Weather API
Mobile WordPress Sites : How to get Category Name
May 9, 2011
A while ago I built a football podcasting site for a client using WordPress. If you’ve ever used it or developed with it then you’ll know how powerful and fun to use WordPress can be. We needed to have a mobile version of the site so fans could listen to the podcasts on their phones [...]More on Mobile WordPress Sites : How to get Category Name










