News & Blog

Taking Your WordPress Development To The Next Level

April 16th, 2014 - Posted by Steve Marks to Miscellaneous, MySQL, PHP, Software, Web Development.
Having been an avid web developer for over 10 years now I’ve seen a lot of change during this time. One of which is the explosion in the use of WordPress Content Management System. About 90% of sites we design and build today are based on WordPress, and I’d probably be right in...

PHP Function getimagesize() Failing For Local Images

April 15th, 2014 - Posted by Steve Marks to PHP, Web Development.
When working with images in a PHP script, there might come a time when you need to use the getimagesize() function in order to discover more about the image. Whether you want to know the dimensions or the filetype, using this function can get you the information you require. Earlier today ...

Update Published Date When Going From Draft to Published in WordPress

April 10th, 2014 - Posted by Steve Marks to PHP, Web Development.
The published date of a page or post in WordPress is set when the article is first added to a website. This is then used in various scenarios; ordering news articles in date order, displaying when a blog post was first added, or setting the ‘pubDate’ value in an RSS feed. An is...

Resolving the Random Zero at the End of AJAX Requests in WordPress

March 18th, 2014 - Posted by Steve Marks to Javascript / jQuery, PHP, Software, Web Development.
If you’ve ever integrated AJAX functionality into a WordPress plugin or theme, you have probably / should have used the in-built WordPress functionality that already exists. An article in the WordPress Codex explains how to do this, and demonstrates how easy it can be. I needed to do...
Give Editor Access to Plugin

How To Allow Editors Access To a Single Plugin in WordPress

February 21st, 2014 - Posted by Steve Marks to PHP, Web Development.
Sometimes the default permissions given to user roles in WordPress need to be tweaked to match the needs of a particular project. We come across this quite a lot whereby we need to hide or show various different options for different user roles. This can normally be achieved by using a plu...

Advanced Custom Fields Street View in Google Map

February 5th, 2014 - Posted by Steve Marks to Javascript / jQuery, PHP, Software, Web Development.
One of the field types available with the Advanced Custom Fields plugin for WordPress is ‘Google Map‘. This allows a user to enter a location or address, then have a Google Map be output on the frontend. I worked on a site this morning that required a Google map adding, the dif...
Responsive Filemanager

Responsive Filemanager Showing Blank Screen or Errors

February 4th, 2014 - Posted by Steve Marks to Javascript / jQuery, PHP, Server Management, Software, Web Development.
I recently upgraded to version 4 of TinyMCE and needed a file manager that worked with this new version so that the user could upload and insert files into the WYSIWYG. Fortunately I came across an excellent file manager called ‘Responsive filemanager‘ which was relatively easy...
Overwrite Modern Tribe Event Plugin Labels

Overwrite English Labels in Modern Tribe Events Calendar Plugin

January 29th, 2014 - Posted by Steve Marks to PHP, Web Development.
I recently installed and setup the Event Calendar plugin from Modern Tribe on a WordPress site. It worked great out of the box and was so easy to customize through use of the templating system that it comes with. I could get it looking exactly how the client wanted, with the exception of a...

Performing a Radial Search with WP_Query in WordPress

January 27th, 2014 - Posted by Steve Marks to MySQL, PHP, Web Development.
If you’re building a site in WordPress that performs some kind of radial search, it can be difficult to know how to do this using the standard functionality included through use of the built-in WP_Query class. I found myself in this exact scenario recently on a site I was developing,...

Why My php.ini Changes Weren’t Taking Effect

January 26th, 2014 - Posted by Steve Marks to PHP, Server Management, Web Development.
Today I needed to change a PHP directive in my php.ini file after needing to increase the maximum POST size allowed. The directive that needed changing was ‘post_max_size‘ from 8MB to 24MB. As a bit of a background before I begin, the server is a 1and1 dedicated server and is r...