Reputation: 146
On the Attachment Page, there is only 1 image and what is the function to call the title for this image? I want to echo the image title at one more place on the same page, how can I do that?
Upvotes: 0
Views: 112
Reputation: 349
You can use the function get_the_title
.
$image_title = get_the_title($image_id);
Upvotes: 1