I noticed that my image captions are not showing the way it should. Instead of showing the caption below the image, it shows separately.
This is the code I got when inserting an image with a caption:
[caption id="attachment_1198" align="alignleft" width="300"]<a href="http://www.mozeej.com/wp-content/uploads/2012/10/DSC_0313.jpg"><img class="size-medium wp-image-1198" title="Katugastota Color Lights - Fault" src="http://www.mozeej.com/wp-content/uploads/2012/10/DSC_0313-300x225.jpg" alt=""Be aware of the vehicles coming from left" reads a board hanging on the pedestrian side of the color lights in the Katugastota City just in front of the Arena Theater. A fault present from the first day till today. No body to fix it! Only a stupid board to warn people! What about a foreigner?" width="300" height="225" /></a> "Be aware of the vehicles coming from left" reads a board hanging on the pedestrian side of the color lights in the Katugastota City just in front of the Arena Theater. A fault present from the first day till today. No body to fix it! Only a stupid board to warn people! What about a foreigner?[/caption]
When viewed in a browser:
<figure class="full-width-mobile alt alignright" style="width: 300px;"><img class="size-medium wp-image-1198 responsive" title="Katugastota Color Lights - Fault" src="/" data-src="http://www.mozeej.com/wp-content/uploads/2012/10/DSC_0313.jpg" alt=""Be aware of the vehicles coming from left" reads a board hanging on the pedestrian side of the color lights in the Katugastota City just in front of the Arena Theater. A fault present from the first day till today. No body to fix it! Only a stupid board to warn people! What about a foreigner?" /></a></figure>
<p>“Be aware of the vehicles coming from left” reads a board hanging on the pedestrian side of the color lights in the Katugastota City just in front of the Arena Theater. A fault present from the first day till today. No body to fix it! Only a stupid board to warn people! What about a foreigner?[/caption]</p>
As you could see, towards the latter of the second line is the "[/caption]" tag. It also lacks link tag 'a href=...'.
At the moment, the caption is just like the text, except that it ends with a [/caption] tag.
Since the url link is not present in the HTML I removed the URL segment from the HTML editor.
[caption id="attachment_1198" align="alignright" width="300"]<img class="size-medium wp-image-1198" title="Katugastota Color Lights - Fault" src="http://www.mozeej.com/wp-content/uploads/2012/10/DSC_0313-300x225.jpg" alt=""Be aware of the vehicles coming from left" reads a board hanging on the pedestrian side of the color lights in the Katugastota City just in front of the Arena Theater. A fault present from the first day till today. No body to fix it! Only a stupid board to warn people! What about a foreigner?" width="300" height="225" /></a> "Be aware of the vehicles coming from left" reads a board hanging on the pedestrian side of the color lights in the Katugastota City just in front of the Arena Theater. A fault present from the first day till today. No body to fix it! Only a stupid board to warn people! What about a foreigner?[/caption]
When the URL segment is removed, it shows as desired. But ofcourse without the link for the image so it wouldn't open up in pretty photo. Resut:
<figure class="full-width-mobile alt alignright" style="width: 300px;"><img class="size-medium wp-image-1198 responsive" title="Katugastota Color Lights - Fault" src="/" data-src="http://www.mozeej.com/wp-content/uploads/2012/10/DSC_0313.jpg" alt=""Be aware of the vehicles coming from left" reads a board hanging on the pedestrian side of the color lights in the Katugastota City just in front of the Arena Theater. A fault present from the first day till today. No body to fix it! Only a stupid board to warn people! What about a foreigner?" /></a><figcaption>“Be aware of the vehicles coming from left” reads a board hanging on the pedestrian side of the color lights in the Katugastota City just in front of the Arena Theater. A fault present from the first day till today. No body to fix it! Only a stupid board to warn people! What about a foreigner?</figcaption></figure>
The way I see it, it is some thing that WordPress is doing. Because according to my knowledge Short Codes are processed in PHP, so I don't think any JavaScript is doing the mess.
But still how can the close tag "[/caption]" be on the content? I am a bit puzzled. Would be great if you can help me out.
What could be the cause of it? How can I overcome it?
The link to the post: http://wp.me/p2Esxn-jj
img_caption_shortcodeor something like that. – Rarst♦ Oct 11 '12 at 18:08