Tag Archives: WordPress

WordPress customization

WordPress Sitemaps with Jetpack

Jetpack can automatically produce XML sitemaps for its WordPress installation. These aren’t generated as static files but rather dynamically assembled on request, just like WordPress posts. While this feature generally works well there are some annoying caveats you should be aware of. Submit your Sitemap Regarding sitemaps for search engines (the only kind I’m interested […]

Simple Twitter Cards for Jetpack

Jetpack’s “Publicize” feature automatically adds a set of OpenGraph and optionally Twitter card tags to WordPress posts. I previously described manually setting a default OpenGraph image. Today we’ll have a look at manually defining Twitter cards. (Note: this post is an enhanced version of material originally added to the previous post.) Enabling Twitter Cards If […]

Exif for WordPress Galleries

Pictures taken with digital cameras usually hold Exif (Exchangeable image file format) metadata about the camera type, shutter speed, and so on. When you want to show this metadata along with your images in a WordPress gallery you have a problem: neither the built-in media attachment viewer nor most custom viewers (“lightboxes”) show Exif data. […]

Syntax Highlighter (MT)

Lengthy code snippets wrapped in standard <pre> tags can be rather hard to read. WordPress.com has a built-in syntax highlighter but the standard WordPress.org installation does not, and neither has Jetpack. Fortunately the WordPress.com feature is based on a freely available JS/CSS library, Syntax Highlighter by Alex Gorbatchev. You can directly add this library to […]

Default OpenGraph Image for Jetpack

Jetpack’s “Publicize” feature automatically adds a set of OpenGraph tags to WordPress posts. (You don’t need to connect any publicize channels to get these tags, but you do need to activate the module itself in the Jetpack control panel.) Generally this works quite well, except for one situation: when you publish posts without images. Unfortunately […]

WordPress Theme on Static Site

Just finished a major redesign of the original Kynosarges website. I might claim its extremely basic old layout was the pinnacle of suave hipster minimalism, except it was actually because I’m clueless about web design. Seeing the pretty weblog here I wanted to have the same look for the static pages on the old website. […]

Switching Site Search to Google

My site search had been powered by DuckDuckGo over the last year, and this weblog had been using the WordPress search widget since I started self-hosting in April. Today I’ve changed both to Google Search, so as to deliver better search results to my visitors. I still recommend DuckDuckGo for general use, and keep it […]

Switching to Google Analytics

For years I crunched server logs with WebLog Expert to obtain visitor statistics for my website. During the last four months I also ran my own Referrer Filter to cut down on referrer spam. It was laborious but I thought I was getting a pretty accurate picture of human visitors, without the kind of intrusive […]

Cleaning WordPress Databases

WordPress is a fine blogging software but the standard package lacks a disturbing number of basic features, even including Akismet and Jetpack. Yesterday I discovered that WordPress, which automatically saves post revisions for every edit and preview, never ever deletes them! Not only does WordPress not delete old revisions automatically, it does not even offer […]