David Ogilo

menu search

I was approached by Purple to help them create a cutting edge website, which took a mobile first approach and showcases different elements of the company. The website was created using WordPress, which included a custom plugin with a OOP, TDD and CI approach. One of the main functionality was to create an API to post jobs onto the site via a third party system.

In this article I’ll show you how to create and run unit tests on your plugins using PHPUnit as the¬†framework. I’ll also be highlighting the importance of Test Driven Development.

WHY TDD?

There are some developers out there who are not fans of writing unit tests to test their code for bugs etc, but I’m not one of them. On the contrary I always write tests for my code. There are so many instances where these tests have picked up bugs. Not only that, writing tests has also made my code more efficient and in turn made me a better…

For some odd reason, there isn’t an option to add stickies to custom post types in WordPress. In this article I’ll show you how easy is it to add this with some PHP/JS code.

THE SCRIPT

The code below adds the option to make a custom post a sticky or not. If the sticky checkbox isn’t in the DOM, then it adds it in…

Web Schema offers a way to markup site content that is recognised by search engines. It’s currently only developed for WordPress but will look into supporting Drupal in the future. The plugin is still in beta and can be downloaded from GitHub. I’ll be detailing how to use the plugin below.

HOW TO INSTALL

To install the plugin just move the webschema folder to your plugin directory and activate it in the admin interface. Once that is done, you can access the plugin configuration page in…

I have read a lot of articles online about how to disable the new admin bar introduced in Wordpress 3.1. From what I read, they have not been done the right way. The code below shows you how…

Whilst adding custom meta boxes to a content type in wordpress, I noticed that when inserting a media file into a custom text editor it always gets added to the content text editor. The reason for this is because the active editor is hard coded in the source code, as shown below in…

I was brought in by Radley Yeldar to work on a project for one of their biggest clients. The project involved me creating a custom plugin to handle all the custom functionalities required by the client. I also created the site theme and made further CSS and JavaScript changes.

Ever wondered how you can load a template for a post based on its ID or post type apart from using a default template that handles all type of posts? Well, there is an easy way! All you need to do is add a few lines in the functions.php file of your site theme. An explanation is shown…

I was hired by Maverick Media to create their company site using WordPress. I was the sole developer on this project and created the HTML layout, CSS and theme.

Old school browser detected!

Your browser is out of date, which means you can't use any of the site's required features. You can either upgrade your browser or switch to either Mozilla Firefox or Google Chrome