Closed ghost closed 9 years ago
I have noticed this too. Doesn't the caption you add end up as the alt tag or something?
And if I remember correctly, the custom url doesn't apply either.
I hadn't tested with a different theme, so I assumed it was a WP core bug, since 4.0.
Hi Joseph,
Yes I remember the issue and still haven't figured anything out. You shouldn't compare WP-Forge to Twenty Fourteen because WP-Forge was created from Twenty Twelve. So in order to find the anser we have to look at them together and see what the difference is. The first difference is I did take a look at the functions.php
file for any functions concerning images and there are a few, the first begins on line 771 and ends on 784, then 820 to 831, and 833 to 845.
I know for sure that Twenty Twelve has none of these functions. I may strip them out one by one and see if they are the culprit and the second thing is Foundation.
I will take the image functions out later today and see what happens. Thanks for bringing this up again as I think it needs to be taken care of.
Joseph,
I think I found the culprit. In my previous message I mentioned a custom function on lines 833 to 845. This function focused on removing the height and width attributes of images.
I removed this from functions.php
and did some testing by adding the caption. With this removed the caption displayed the way it should. I added it back, tried it again and the caption disappeared.
So if you like you can remove lines 833 to 845 of functions.php
this should correct the issue. I will be updating the WP-Forge repo with this fix as well as the download available on the site shortly.
I apologize it took so long, just got busy. Please let me know if you have any additional issues.
Sorry should have done this yesterday. I am going to close this issue. Please open again if you need to.
Tested this out and it worked!
You are the man, Thomas!
Your very welcome :wink:
NOTE: I brought up this issue in the old support forum, and thought I'd bring it over here, in case someone else has noticed this and/or found the cause/solution. Me and Thomas had previously discussed this issue but could not find a cause of this. :-)
When I insert an image into a post, the caption that I enter for the image doesn’t initially appear underneath the image in the post editor.
When I click on the image to edit it, I see that my caption isn’t there at all, and that I have to retype it. Once I do that and click the Update button, then my caption appears.
Adding the image into the Media Library first will save the caption. But when I add the photo into the post from the Library, I still have to re-enter the caption.
Somehow, the text that is in the caption becomes the alternative text, leaving the caption field empty.
When doing this with the Twenty Fourteen theme, this issue doesn’t happen. Any thoughts?