how to retrieve the image title for image Post Format

Question

Hope everyone is having a good day. in WordPress Codex Post Format the image post format is defined as

image – A single image. The first tag in the post could be considered the image. Alternatively, if the post consists only of a URL, that will be the image URL and the title of the post (post_title) will be the title attribute for the image.

Now i need to know about what title attribute they are talking about in the above definition of image post format and how to retrieve that title through php as all the data is coming from the_content() function, anyone has any idea? i have researched online and there is literally no issue about this one.

0
Muhammad Kashif 2 months 0 Answers 11 views 0

Leave an answer