First of all, I apologize for my English, because my English isn’t good.
How to display title of attached image between < h3 > tags in the post?
First of all, I apologize for my English, because my English isn’t good.
How to display title of attached image between < h3 > tags in the post?
Is that the actual image attribute title that you’re editing there? Wordpress also has “titles” for media files that are the way you’re sorting out your media files in Wordpress, that, I think, does not correspond to the actual attribute “title” - which might explain why it’s not showing up.
In essence, that title field might be used by Wordpress only, and you haven’t actually set the image attribute “title”, hence why it isn’t showing in the array.
Best idea I’ve got, possibly wrong
Hi jeffreylees. My purpose, after upload the image, when i click to ‘insert into post’ button and publish post, code shows like this in site source code:
<h3>Image Title</h3>
<img src="abc.jpg" alt="Image Caption">
Is it possible?
Would something from here be useful?
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.