Admin Bar Missing From WordPress Website Front End
If you’ve worked with WordPress before you’ll know that when logged into a WordPress back-end, a bar will appear at the top of the website when viewing the public facing site. The admin bar allows the...
View ArticleFix Zip Corrupting After Uploading It Via FTP
I came across a problem recently when uploading a Zip file via FTP. The Zip file would open fine before sending, however trying to open and extract it on the remote server resulted in an error....
View ArticleHow To Check If PHP Array Contains Duplicates
I just had to perform a check in PHP to detect whether duplicates existed in a given array. My first thought was to do some fancy looping and sorting of the array but I then came up with the following...
View ArticleHow To Only Show Top-Level Pages When Choosing Parent Attribute
Whilst recently working on a site built in WordPress I had a site structure that would never go more than two levels deep. As a result I wanted to make it impossible for a user to set a page three...
View ArticleAdding a New File or Template to a WordPress Theme Without FTP Access
The WordPress platform contains a feature allowing direct editing of theme and plugin files through the backend when logged in. Before today I had never used this functionality due to always having had...
View ArticleWordPress Custom Post Type Not Appearing In Backend
I’ve just experienced a problem when working on a WordPress website whereby I registered a custom post type in functions.php, however I could not get it to display in the left hand navigation. I...
View ArticlePHP’s ZipArchive Class Not Creating Zip File (And No Errors)
The ZipArchive Class provides a quick and easy way to create, or extract, Zip files using PHP. I did face a problem recently though when trying to build a zip file, and it took me a while to figure out...
View ArticleWhy WordPress NextGEN Gallery or Album Pages May Return 404 Pages
Whilst recently implementing a NextGEN photo gallery plugin into a WordPress site, I came across a problem whereby pages that should have been displaying galleries or albums, were instead showing a 404...
View ArticleAppending Data To Existing CodeIgniter Session Variable
When storing information in a session, it is likely that you may want to add additional inormation to this session at a later date. For this particular post I’ll be focusing on how to achieve this...
View ArticleFilter WordPress Search Results by One or More Post Types
By default, performing a search on a WordPress website will search through everything; all pages, posts, and any custom posts types that have been created. I came across a scenario earlier however...
View ArticleList Alphabetical Characters A-Z with PHP
I wanted to share a really simple way to get all the characters from the alphabet so that they can be easily iterated through. I’ll be using the PHP range() function which, aside from getting...
View ArticleWooCommerce Not Working After Moving It To New Server
I’ve just moved an e-commerce WordPress site that uses the WooCommerce plugin to another server and, when going to view the new site, I started receiving the following error: PHP Fatal error: Call to a...
View ArticlePutting a WordPress Website Live On a Windows IIS Server
A while back I wrote a quick guide on how to put a WordPress site. I still stand by this guide to this day, and still refer back to it myself as a kind of checklist. Today I came across something...
View ArticleHow To Change The WordPress ‘Featured Image’ Meta Box Title
The ‘Featured Image‘ feature in WordPress was introduced in version 3 and is used in pretty much in every site I do. This uploaded image however can be used for multiple reasons (ie. slideshows,...
View ArticlejQuery Tubular YouTube Video Not Loading On WordPress Site
Normally I like to think I’m quite a calm and relaxed person. Or so I thought until I came across this problem when I was on the verge of throwing the PC out of the window. Ok, maybe that’s a little...
View ArticlePHP Snippet – Deleting Files Older Than X Days
Sometimes it is necessary to perform clean-up operations and only keep the latest files within a directory. If we take application logs for example, we might only want to keep the last 7 days worth of...
View ArticleDebugging Why WordPress Won’t Create Plugin Tables On Activation
I’ve wrote small-ish WordPress plugins in the past, however at the moment I’m working on something a little more girthy (can a WordPress plugin be girthy?) where I’m getting to experiment with more of...
View ArticleWordPress Plugin – Property Portal BLM Export – WP-Property Add-On
If you send automated feeds to property portals such as Rightmove and Zoopla, to name but a few, you’ll know doubt of heard of BLM files; A format that allows you to send your properties to these...
View ArticlePHP’s ftp_nlist() Returning False, Even When Files Definitely Exist
PHP comes with a whole host of FTP functions built-in that makes performing FTP operations quick and easy. One of the things you can do is to use the ftp_nlist() function to get the contents of an...
View ArticleCoding Standards Explained, and How You Will Benefit From Using Them
Over the past few years the importance of having a strong set of coding standards has really stood out for me. Especially since becoming freelance, I tend to find myself dabbling into a lot more work...
View Article