Tag: code
-
Filtering customTemplates from theme.json with a plugin
Recently I was rebuilding the Helpful Digital intranet using a WordPress block theme called UniBlock. As part of […]
-
Mapping series – Working with Algolia Places address autocompletion api
For a recent mapping project I implemented Algolia Places for address autocompletion to turn an address into latitude and […]
-
Reverse relationship query for last ACF repeater sub-field
Advanced Custom Fields (ACF) is a great WordPress plugin for adding custom meta fields. It has a very […]
-
Avoiding permissions problems when creating Zip files in PHP
A typical PHP snippet to create a Zip file looks something like this: $zip = new ZipArchive(); $zipname […]
-
Extending WP CLI – wp config update
One gap in the abilities of WP CLI at the moment is the ability to modify an already […]
-
Displaying you WordPress.org favourite plugins
Updated 02 – 05 – 18: plugins object is now returned as an array. On a whim this […]
-
Sending your WordPress posts back / forward in time
Fancy sending your WordPress site back (or forward) in time for a day? Thanks to the multitude of […]
-
Managing multiple WordPress installs with bash and WP CLI
Jump to the bottom if you want to go straight to the script I recently set up a […]
-
Get terms from a shared taxonomy used on a single post type
WordPress has a handy get_terms() function that retrives a list of all the terms for a taxonomy – […]
-
Using Garlic.js with TinyMCE WYSIWYG editor
Garlic.js is a great library – it uses localStorage to save the state of forms, so if your […]