Debugging Code by Deliberately Breaking it

A lot of the time, inexperienced or overly cautious developers will tinker, theorise and worry about fixes and finding solutions to bugs or challenges during development. Sometimes it is faster and easier to just begin deliberately breaking code. This is not counter-productive and can be a powerful development practice to more efficiently work through problems. By deliberately breaking a function or a page early on in the code, and slowly re-enabling.. Read More

Change the default input field placeholders in the WordPress admin

WordPress will have some default placeholders for input fields, like the title text input, which defaults to ‘Enter title here’. Sometimes these can be a pain, as custom fields may have other fields that show titles or content, and the title field might just be used for reference. IT also looks a little better to have these fields customised sometimes, usually when dealing with custom posts. This is something very.. Read More

The First Version of WordPress – v0.71 “Fire”

The first version of WordPress that was actually called as such, was version 0.71 named “Fire”. The original blog post from 2003 announcing the release and the features can still be found here. The initial release that became WordPress was forked by Matt Mullenweg and Mike Little from a piece of online blogging software called ‘b2 cafelog’, which was originally developed by Michel Valdrighi. Even though b2 was gaining popularity, Valdrighi was unable to put a lot.. Read More

The Agathokakological Nature of Social Justice

Individuality gives way to the struggle for social justice   The example next to nearly every modern definition of social justice describes individuality giving way to the struggle for social justice. The term struggle illustrates the constant, uphill battle. Even the word for tells us that this is something we want to strive towards. And justice, social justice is the infallible bastion of truth and equality upon which society is.. Read More

Gems, A Decentralised Mechanical Turk Microtask Alternative

The term “Mechanical Turk” comes from an 18th century chess-playing automaton built by a Hungarian inventor named Wolfgang von Kempelen. The Turk was presented as an automated machine displaying a high level of artificial intelligence by beating famed chess players of the time, including Napoleon Bonaparte and Benjamin Franklin. A panel of the machine was exposed to reveal an intricate system of gears and cogs that supposedly powered the machine. In.. Read More

Essential Plugins for WordPress Development

There are hundreds of posts that will tell you about the “Must have WordPress plugins!” that will reel off the same few; JetPack, probably W3 Total Cache, maybe an automatic backup plugin and then fifteen different social bars. What we’re going to look at here are plugins that will make development easier and save developers time. This doesn’t just mean making the actual process of development easier, but also taking certain plugins.. Read More

Get the featured image of the posts index page in WordPress

It is common to need a way to get the featured image / title or fields from the blog listing page as by default WordPress passes through all of the posts to this template, meaning functions like the_title() no longer work as in other templates, as the loop is different. This function targets specifically the blog listing page, but does so dynamically to avoid hard-coding by ID.

How to Defer Loading of Javascript

When a webpage loads a JavaScript file (inside a typical <script> tag), it must download the script, parse it and execute it wherever it sits within the HTML before continuing to render the rest of the HTML page. So the more <script> tags, the longer a page will take to load. The higher up a page that the scripts are included means a smaller amount of the page UI will be loaded.. Read More

How to create a simple sitemap page in WordPress

A sitemap page is a staple and an SEO essential for any site with a good amount of varied content. There are a lot of plugins out there that come with pages and pages of individual options customisations, usually missing the one or two things you actually want, and overcomplicating the whole process. It is very simple to build a basic sitemap page using a couple of basic queries and loops that are probably already used throughout the rest of the site.