Posts Tagged: php

0Wordpress LogoAutomatically generate and serve avif images with wordpress

I have spent quite a lot of time optimising the performance of this site, and as part of ongoing work I monitor new technologies that could help improve the speed for visitors. I’ve been tracking the adoption of next-generation image formats for a while and with support by web browsers now fairly widespread it was time to figure out how to make use of these new formats in wordpress.
Read Full Article

0Wordpress LogoWordPress updates progress

I’ve had an issue for a while now where installing wordpress updates doesn’t show any messages or progress. The updates generally do install but it is tricky to know when the updates have finished. There are a few threads online with possible solutions but most of them haven’t been helpful in my case.
Read Full Article

0Localisation of Amazon Affiliates links

I occasionally reference products on my various websites, and usually link them to Amazon for anyone interested in buying them. A long time ago I used to link with an amazon affiliates link but never earned anything from it as my typical readership is well distributed around the world. Unfortunately Amazon don’t provide a way to redirect visitors to their local amazon site whilst retaining to affiliates payments. There are various solutions out there but all the ones I found had issues with them, so I developed my own…. Read Full Article

0Comment bubbleEasily set the parent of a WordPress comment

As is documented in the site update log, for a while we had a problem with our theme where it wasn’t possible to reply to a comment so that the reply would appear correctly in a threaded way.  We have no fixed this problem, but have been left with a significant number of comments which really need editing so it is easier to see what they are in reply to.  With a standard wordpress install this requires going into the database and editing there, which is very tedious.  Instead, we’ve used some simple functions to add an option to the comment-edit admin page, to set the comment parent there.  Eventually this will be developed into a proper plugin to enable this functionality.  For now the code is below, just add it to your theme’s functions.php

Read Full Article

0Wordpress LogoFixed: Deprecated PHP errors in wordpress dashboard

Earlier today I updated our test site, in preparation for rolling updates out to the main site.  This involved updating several plugins and replacing the “BeforeTheDeadline” plugin with Jetpack.  After completing the updates I found I was getting several error messages on the dashboard, under the “incoming links” dashboard widget, and even more errors when I tried to empty the W3 Total Cache caches.

Read Full Article