Posts Tagged ‘WordPress’

Tags lost in the cloud

I’ve just recently started a photoblog, using WordPress 2.6.1. Not an upgrade, a new installation. After about a dozen posts, I noticed that the tag cloud was no longer updating with new tags from subsequent posts. At the time I noticed this, I was using the standard wp_tag_cloud template tag. I then also tried the cloud function in the Simple Tags plugin with the same results.

Here’s where the missing tags *would* show up:

  • The tags list within individual post (theme does not have a single.php file)
  • Admin » Manage » Tags
  • Admin » Manage » Mass edit tags (Simple Tags)

But they would not show up here:

  • The tag cloud on the front page
  • The tag cloud in individual posts
  • Admin » Manage » Manage tags (and are not searchable) (Simple Tags)

So, what’s the solution? I waited. Eventually the tags will show up. I’m not sure if it is a trigger, but it seems that visiting an individual post with a missing tag will push the tag to update to the cloud. I’ll chase that theory and update if necessary. I’ve seen a handful of posts on the WordPress support forum concerning incomplete tag clouds, but none have been answered or followed up, so I’m guessing that this delayed cloud update happened to them also.

The bottom line is if this is happening to you, give it a day or two and see what happens.

WordPress Hacked

If you’re using version 2.1.1 on your WordPress blog, beware. Read more about it here. And upgrade to 2.1.2

WordPress Theme – ClassicM

If you happened to visit this site back around 2005, you may have noticed that I was using a theme similar to what you’re viewing now. I tweaked it and tweaked it until it was totally hosed and then just decided that I would give it another shot at a future date. Well, that future date came this Sunday and here it is.

ClassicM

ClassicM is based on the original Classic WordPress theme; I just added a slight shot of testosterone to it. The current version contains valid HTML and CSS (although my doesn’t.) If you’re using a standards compliant browser such as Firefox, you may notice that the background image is fixed. For best effect, slowly drag the scrollbar! I may release other variations of this theme at another future date.

Download: ClassicM.zip (83kb)

I *am* a novice at this, so go easy on me :)

Update: I’ve added an alternate, non-background image style sheet (stylealt.css)

A tip for images in WordPress

One of the great features of WordPress 2.x is the ability to upload an image *while* you are composing a post, instead of the old method which was FTP’ing an image and then manually writing a link to the image within the post or using the built-in upload feature that was contained in another section of the admin panel. With this new feature, you now have two options: display the original image or display a thumbnail which links to the original. The second option is useful if the dimensions of the original image are so large that inclusion “breaks” your layout; sometimes, that original image needs a separate display so that the details are legible.

But, what if you would just rather resize the image so that it can be included within the post? Fortunately, the content areas of most WordPress themes have a fixed width. All you need to do now is find out what that width is. One way of doing that is to first take a look at the source code of your page. Scroll down the source code until you find the beginning of an entry (you wrote it, you should know what you’re looking for, right?)

Source Code

Now identify the div tags just above the entry. In my case (theme), I see tags called “content”, “narrowcolumn”, “post”, “entry”, etc. Somewhere within one of those tags are instructions on how wide the browser should display the content area. To find those instructions, you will need to look at the stylesheet for that theme, so just login to your WordPress admin, go to “Presentation” and then “Theme Editor”. Now click on “Stylesheet” on the right. Scroll down and look at the specs for these tags until you find one for width:

Stylesheet

There it is! According to “narrowcolumn”, my content area is 500 pixels wide. So that’s how wide my images can be, right? In most cases – Wrong. Look at your site again. You will see that there is some padding between the text of your posts and the borders. That padding will have to be subtracted from the maximum image width. Jeeze, now I need to go back and find the tag that contains those padding instructions. Hmmm, it’s not there. Nope it’s not here either. You know what? To heck with this! Since I use FireFox, I’m just going to use a nifty little extension called MeasureIt. After it’s been installed, you’ll see a little icon down in the bottom-left corner of Firefox. Click on it and measure your absolute text area.

MeasureIt
(click to enlarge)

So, according to MeasureIt, my max width can be 501 pixels. Just to be on the safe side, I’m going to back off a little and make it 495. That should be easy to remember. That was the number of the F-15 I was assigned to in the Air Force. Or was that 492? You know what, I think I’ll just put a little post-it note on the side of the monitor.

The only thing left to do now is resize my image. Don’t have a program to resize images? Just download a freeware program such as FastStone Image Viewer.

Now I have one more issue to address. The third image above is a thumbnail, but personally I think it sucks that WordPress made it so small, so one of these days I’m going to open wp-admin/inline-uploading.php, scroll down to line ninety-something and change:

$thumb = wp_create_thumbnail($file, 128);
elseif ( $imagedata['height'] > 96 )
$thumb = wp_create_thumbnail($file, 96);

to:

$thumb = wp_create_thumbnail($file, 256);
elseif ( $imagedata['height'] > 192 )
$thumb = wp_create_thumbnail($file, 192);

That’ll double the thumbnail size.

Hopefully, in an upcoming WordPress release, they’ll give us a preference on thumbnail sizes.

Site Stats as a Spellchecker

I recently installed the bstat plugin to my WordPress and have discovered that it doubles as a handy-dandy (after the fact) spellchecker. For instance, I was wondering how could it be that this lowly site is getting so many hits for such a popular term as Firefox? Upon opening my eyes a little wider, I discovered that the post getting all the hits had Fixefox in the title. Actually, I don’t feel so bad for my blunder, knowing that so many people were making the same mis-spelling and going as far as to click the link to my page – ignoring the red text at the top of the Google search result page that states: Did you mean: firefox. If not for their blunder, I would have never noticed mine.

Another discovered goof-up:
billlboard = billboard

Return top