Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Links in image captions (http://forum.bytesforall.com/showthread.php?t=1494)

paulae Apr 30, 2009 09:38 AM

Links in image captions
 
I wanted to put a link to another post inside an image caption. When I did it, the caption was "broken," and the int link code showed up weirdly atop the photo! Ugly mess!

I found that if I created the image with caption in Visual mode as usual, but then went into HTML mode, I could enter an external link successfully.

The reason it was breaking before is that the caption treats everything inside it as a link:
Code:

[caption id="attachment_3029" align="alignleft" width="200" caption="Anant Nambiar"]<img class="size-full wp-image-3029" title="anants" src="http://www.larchmontgazette.com/wp27/wp-content/uploads/2009/04/anants.jpg" alt="anants" width="200" height="221" />[/caption]
What I did was to put my link code just before the closed caption bit:

Code:

[caption id="attachment_3029" align="alignleft" width="200" caption="Anant Nambiar"]<img class="size-full wp-image-3029" title="anants" src="http://www.larchmontgazette.com/wp27/wp-content/uploads/2009/04/anants.jpg" alt="anants" width="200" height="221" /><a href="http://www.cnn.com">[/caption]
However, if I want to link to an internal post, this method doesn't work. Any ideas, anyone?

I found a thread at wordpress.org involving a change to the footer.php code, but that seems like overkill.

knord Jul 16, 2009 08:01 AM

did this problem ever get resolved? what about italics in captions?

I'm having the same problem with italics. some of my captions properly reference where the image came from. I'm been trying to format the book title in italics. I can do this in visual or html mode, publish it and the italics is removed. I can make it "stick" if I change it using html code (<em> and </em>) and publish it. BUT if I go ever go back to edit the page, once I publish the italics is removed. my blog is for research for my practicum (thesis) and I must reference in accordance to certain standards.

please help.
thanks.


All times are GMT -6. The time now is 04:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.