Need an image caption below my images
-
Hi. I need help getting an image caption to show up under my image. Since my images have both a title and a description, the description may as well serve as the caption.
I’m using WordPress 1.5 — I’m too close to the deadline to upgrade to WP 2.1 right now.
I’m placing images into my posts using the normal interface (click image, choose “send to editor”). That puts the image in my post just fine.
I used Sketchbunny’s directions to edit wp-admin/inline-uploading.php to add a title attribute to my image tag. That worked, too.
I tried to use those same directions to add a simple caption after the image tag, but it didn’t show up at all. Sketchbunny says that his edit only affects new images, so I added a brand new image to the article, but still no caption.
Can anyone tell me what I might be doing wrong? Besides using WP 1.5, I mean.
My code:
imga[{$ID}] = '<img id=\"image{$ID}\" src=\"$src\" alt=\"{$title}\" title=\"{$title}\" $height_width /><br>\"{$descr}\"';
imgb[{$ID}] = '<img id=\"image{$ID}\" src=\"{$image['guid']}\" alt=\"{$title}\" title=\"{$title}\" $height_width /><br>\"{$descr}\"';
- The topic ‘Need an image caption below my images’ is closed to new replies.