News & Blog

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...
acf-street-view

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...
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,...

Resolving WordPress Widgets Snapping Shut

January 23rd, 2014 - Posted by Steve Marks to PHP, Web Development.
I came across a peculiar problem recently when setting up widgets for a WordPress site I was working on. In summary, I was registering sidebars and adding widgets when a scenario arose whereby I was unable add widgets. I would drag and drop an available widget into the respective sidebar a...

Hashing ACF Password Type Fields in WordPress

January 16th, 2014 - Posted by Steve Marks to PHP, Web Development.
The release of version 4 of the Advanced Custom Fields plugin saw the addition of a few new field types. One of these was a type of field called ‘password’. By selecting a field to be of type ‘password’ it would mean that the entered characters would be starred out ...

Why My WordPress Loop Was a Post Short

January 6th, 2014 - Posted by Steve Marks to PHP, Web Development.
Earlier today I was working on adding a blog to an existing site. This is a pretty standard task and one I’ve done many times in the past. This time it went a bit different than normal however as I got stuck in a situation that I just couldn’t figure out. The Problem I created ...

How To Use WordPress Functionality From a Bespoke PHP Script

December 20th, 2013 - Posted by Steve Marks to PHP, Web Development.
As a WordPress developer there might come a time when you need to write a bespoke PHP script that sits outside of the WordPress file structure, yet needs to use the standard functionality available from within the CMS. This was exactly the scenario I found myself in recently, whereby a com...