Skip to content

Fixing the blog, Part 1

For a while now, whenever I’ve tried to link a thumbnail image to a Page, rather than a File (WordPress users will know what I mean), the link wouldn’t work. I thought that perhaps the updated WordPress had broken it, or something in unused tables had caused it not to work. I could see via FTP that the image file itself was there, but somehow WP couldn’t find it when it needed to stick it on a page.

I was convinced it was an upload.php problem, or how it was stored in the wp_post or wp_postmeta tables in the database. I manually scanned these, having to learn quickly how these tables were constructed to see if I could spot anything that wasn’t right. I tried using the default theme in case the files with the theme were playing up, but even with re-uploading the picture (Elisabeth became a test post for a while), there was still no joy.

Although there were a few bugs raised in WordPress Trac, of those that I could fine, none of them quite fitted my problem, or couldn’t suggest a solution if they did. I even managed to rope in Ian Knight from 34SP.com to offer suggestions, after originally asking him about something else entirely. With his suggestions, it was tracked down that the custom permalink was causing the problem. With that knowledge I could find a support post and a bug raised on it, though both could offer nothing more than to say “don’t use /category/ in the permalink”.

Now this is a less than ideal solution, as permalinks are supposed to be, as the name might imply, permanent links, which shouldn’t change, but if I wanted my thumbnail links to pages to work, that is exactly what I had to do. By the time you read this, I’ll have converted all the old style post links to the working version, and re-uploaded all the pictures so that they work as intended to.

However, this wasn’t the end of my problems.

Other posts with an identical category

{ 1 } Trackback

  1. Fixing the blog, Part 2 by Gary Jones | January 25, 2008 at 16:43 | Permalink

    [...] (see my review of this plugin) to really offer some good data to the world. Following on from my previous problems, I still couldn’t display the thumbnail-linked images on their own page. I could in the [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

Subscribe without commenting