WordPress Stories – a quick review

by @edent | # # # | 3 comments | Read ~142 times.
In product screenshot. You've got early access to Story Posts and we'd love for you to give it a try. Now stories are for everyoneCombine photos, videos, and text to create engaging and tappable story posts that your visitors will love.Story posts don't disappearThey're published as a new blog post on your site, so your audience never misses out on a thing.

The WordPress app for Android prompted me to add a story! This is a new and experimental feature. Sadly, it isn’t very good. Here’s how it works. There’s a brief description and some aspirational screenshots. There’s a basic image picker. Then you get some basic tools to add text on top of your image. I…

Continue reading →

How to preserve deleted Tweets in WordPress?

by @edent | # # | 3 comments | Read ~114 times.
HTML code of an iFrame.

I like quoting people’s Tweets in my blog posts. But, sometimes, people delete their Tweets. This blog post examines two questions. How to preserve Tweets in blog posts that they are still readable even after the user deletes them. Whether this is morally acceptable behaviour. Let’s tackle the easy question first. Preserving Tweets Using the…

Continue reading →

WordPress’s undocumented stats API

by @edent | # # | 2 comments | Read ~207 times.
WordPress console showing a JSON output.

This blog runs on WordPress. Using their JetPack plugin, I get fairly detailed stats on views and visitors. But, bizarrely, the API is undocumented. Well, sort of… Let me explain: Just Show Me The Code Here’s the API call to get a year’s worth of data about your blog. https://public-api.wordpress.com/rest/v1.1/sites/shkspr.mobi::blog/stats/visits ?unit=day &date=2021-01-03 &quantity=365 &stat_fields=views%2Cvisitors’ Replace…

Continue reading →

Adding Semantic Reviews / Rich Snippets to your WordPress Site

by @edent | # # # #
Screenshot of JSON code in a web page.

This is a real “scratch my own itch” post. I want to add Schema.org semantic metadata to the book reviews I write on my blog. This will enable “rich snippets” in search engines. There are loads of WordPress plugins which do this. But where’s the fun in that?! So here’s how I quickly built it…

Continue reading →

Howto: Disable image pop-ups in WordPress comments

by @edent | # # # #
An mshots popup obscuring the screen.

If you have the Akismet spam plugin for WordPress, you’ll be familiar with this problem. When your mouse pointer goes over any URL, you get a large website preview taking over parts of your screen. I asked for a way to turn this off and I’m happy to say the developers listened! Sadly, there’s no…

Continue reading →

Improving WordPress Video Accessibility

by @edent | # # # # # | 2 comments
A video with an easy to see play button.

In order to provide a video playback UI, WordPress uses the excellent MediaElement library. Recently, I discovered a slightly annoying flaw – I couldn’t see the play button! Here’s a screenshot of the video UI. In the middle of this screenshot is a white play button. I have trouble seeing it, because the video’s background…

Continue reading →

A small accessibility improvement to WordPress

by @edent | # # # # | 6 comments | Read ~155 times.
An upload screen - there's a large text box for the image description.

My mate, the accessibility specialist Léonie Watson, has this to say about how we improve the world, piece-by-piece: Accessibility doesn’t have to be perfect, it just has to be a little bit better than yesterday. Source: Twitter Damn straight! One of the best ways we can make tomorrow slightly better than today is by making…

Continue reading →

Strategies for linking to obsolete websites

by @edent | # # # | 7 comments | Read ~143 times.
Plugin offering to fix a broken link by replacing it with an archive link.

I’ve been blogging for a long time. Over the years, I’ve linked to tens of thousands of websites. Inevitably, some of those sites have gone. Even when sites still exist, webmasters seem to have forgotten that Cool URls Don’t Change. I use the WordPress Broken Link Checker plugin. It periodically monitors the links on my…

Continue reading →

HOWTO: Regenerate Gravatars in WordPress

by @edent | # # | 1 comment
The Logo for WordPress

A troublesome plugin recently corrupted some of the avatars on my blog’s comments. This is a quick HOWTO for regenerating them. Gravatars are based on the MD5 hash of a user’s email. For some reason, the plugin had overwritten the avatar field with the text http://identicon This MySQL query finds all the comment IDs which…

Continue reading →

Using the WordPress mShots Screenshot API

by @edent | # # # | 5 comments | Read ~2,068 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 →