Category: PHP
Building a WordPress Plugin for the Block Editor
Recently I needed to create a new wordpress plugin to display the results of an API. I figured that it should be a relatively easy task. My initial issue was that a lot of the immediate results that I found for how to do it related to the old WordPress editor and not the new…
Amazon API Gateway 403 Bad Request
Today I spent several hours trying to get a new API on Amazon API Gateway authenticating with an API Key. I don’t always find AWS the easiest platform to work with. The documentation is often incomplete and not entirely well-organised. The documentation for API Keys is located here, and the process can be summarised as…
Grappling with Grav
In my search for a lightweight WordPress alternative which uses real CSS I stumbled across Grav. Out of the box I was quickly impressed with the ease of installation and the quality of the documentation. For some the use of markdown rather than a full WYSIWYG editor might be an issue, but I actually like…
Posting to Twitter using X API v2
Having successfully posted to Instagram using their API, I also wanted to post to X. I knew from memory that this would not be so easy. X uses oauth authentication, and in the past I have found this to be particularly problematic. A bit of searching turned up a couple of useful videos on youtube.…
Post to Instagram API from PHP
Having spent a whole morning fighting Facebook to change a phone number, it was a relief to get back to the issue. Creating an Instagram Post via the API. The documentation is daunting, and the process is long-winded, but as I discovered the actual solution is straightforward. Create the App The first thing you need…
Creating lightweight web sites with PHP
Back to basics So I’ve had a couple of months of using WordPress now, and I have to say for blogging, site which are going to grow rapidly or for multi-editor sites, I would definitely recommend it. I still believe, however, it is overkill for many uses cases. HTML is very good at what it…
Creating reusable patterns for WordPress Themes
As I’ve hinted at before one of the advantages of writing websites from scratch is that you get to be in control of everything. Of course as a site grows in complexity that can become a disadvantage too. Control, however, is addictive – and now I am using WordPress I am working hard at bending…
Draining the swamp
“When you’re up to your neck in alligators, it’s hard to remember that your initial objective was to drain the swamp” It seems quite appropriate that in wanting to start a tech blog about the difficulties in keeping up to date, I should start by having to update a whole bunch of dependencies. My web-host…
