Quantcast
Channel: BIOSTALL » PHP
Browsing all 57 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Fix 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 Article


How 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 Article

How 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 Article

Adding 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 Article


WordPress 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 Article

PHP’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 Article

Why 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 Article


Appending 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 Article


Filter 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 Article

List 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 Article

WooCommerce 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 Article

Putting 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

jQuery 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 Article


PHP 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 Article

Debugging 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 Article


Image may be NSFW.
Clik here to view.

WordPress 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 Article

PHP’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 Article

Coding 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
Browsing all 57 articles
Browse latest View live