Using the WordPress mShots Screenshot API

by @edent | # # # | 4 comments | Read ~159 times.
The Logo for WordPress

A few years ago, I wrote about Google's secret screenshot API - a slightly cumbersome way to take website screenshots for free. There's another service which you may find simpler to use - mShots from WordPress. Here's how it works: Take any website link: https://twitter.com/JennyVass/status/1067855777040338944 URL Encode it: https%3A%2F%2Ftwitter.com%2FJennyVass%2Fstatus%2F1067855777040338944 Add it to the end of […]

Continue reading

Import Images From A Migrated WordPress

by @edent | # # # # # | Read ~215 times.
The Logo for WordPress

Here's how to solve a common WordPress problem. I want to re-import all my blog's images into the media library. I've moved my blog to a new host - but kept the same domain name. I started with a new WordPress install, the uploads folder still has all my images, but WordPress can't see them. […]

Continue reading

An "on this day" plugin for WordPress

by @edent | # # # # # | Read ~151 times.

Just me scratching my own itch. I want to create an RSS feed of all the blog posts which I'd published on this day in the past. For example, if today is 21st of November 2016 then this plugin will show blog posts written on 2015-11-21 2014-11-21 2013-11-21 And so on. You can view a […]

Continue reading

Google's AMP is a gilded cage

by @edent | # # # # # | 47 comments | Read ~72,781 times.

AMP is Google's attempt to re-fight the transcoding wars of the early 2000s. It is actively dangerous to the web ecosystem, helps disseminate propaganda, and is disliked by many users. If, like me, you made the mistake of trying out AMP on your website - you're in a tricky position if you try to remove […]

Continue reading

Don't use negative numbers for error codes

by @edent | # # # # | 7 comments | Read ~689 times.

A warning to programmers - try to understand how people will use your error codes. This morning, I was confronted with a rather bemusing error message on my WordPress blog: Ok, so this should "never happen" and yet somehow it has. I wonder what on earth the error code means? I selected the error code […]

Continue reading

Displaying WordPress Posts' JetPack Statistics Using stats_get_csv()

by @edent | # # # | Read ~501 times.

Here's a quick way to display how many times a WordPress post has been read. For this, you will need: A blog running WordPress. The JetPack plugin installed. The ability to edit your themes. Here's the snippet of code I'm using to add "This post has been read 12,345 times". I'll explain how it works […]

Continue reading

How To Style WordPress's Audio Player?

by @edent | # # | Read ~1,657 times.

WordPress has a built in media player. Chuck in an .MP3 or other sound file, and it will play directly in the browser. Nifty! The only problem is that is looks a bit... dull. (From Alex Fitch's Eola) It works, but it's not exactly what you'd call gorgeous, is it? Wouldn't it be nice if […]

Continue reading

WordPress Archive Calendar Widget

by @edent | # # # | 2 comments | Read ~562 times.

One of the most addicting aspects of Open Source software is the ability to scratch one's own itches. I've been blogging since 2004 - and while I'd never mistake longevity for expertise - I do take a certain pride in letting my readers know that I've spent over a decade bashing out words. So, I […]

Continue reading

The Unsecured State Part 3 - 2,000+ NHS Security Vulnerabilities (Disclosed)

by @edent | # # # # | 8 comments | Read ~11,039 times.

This is part 3 of a series of blog posts looking at the security of the UK Government's web infrastructure. Britain's National Health Service is riddled with old and insecure WordPress-based websites. Many of these sites have severe flaws including being vulnerable to XSS attacks. There is absolutely no suggestion that patient data or confidentiality […]

Continue reading

Caution Needed When Using CloudFlare and Better WP Security

by @edent | # # # | 6 comments | Read ~2,325 times.

There's a nasty WordPress hack doing the rounds at the moment. Essentially, it looks for WordPress blogs and then tries to log in to them using common username / password combinations. If you're still using "admin" and "secret" - now is the time to change them! I've started using Better WP Security on my blogs. […]

Continue reading